diff --git a/js/services/rpc/rpc.js b/js/services/rpc/rpc.js index 928740a..b1300fb 100644 --- a/js/services/rpc/rpc.js +++ b/js/services/rpc/rpc.js @@ -95,7 +95,7 @@ function(syscall, time, alerts, utils, rootScope, uri, authconf) { } else { alerts.addAlert('Oh Snap! Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings', 'error'); - timeout = setTimeout(update, 10000); + timeout = setTimeout(update, $globalTimeout); } }; @@ -109,7 +109,7 @@ function(syscall, time, alerts, utils, rootScope, uri, authconf) { if (failed) { alerts.addAlert('Oh Snap! Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings', 'error'); - timeout = setTimeout(update, 10000); + timeout = setTimeout(update, $globalTimeout); return; }