From e05dd94c316361d0fe78b9c94981c24ec4f6c9cc Mon Sep 17 00:00:00 2001 From: hamza zia Date: Fri, 4 Mar 2016 22:03:19 -0800 Subject: [PATCH] follow rpc global timeout from config: --- js/services/rpc/rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }