From 23dac0acb7e00169d254f75a8bbce0ffd1bca83f Mon Sep 17 00:00:00 2001 From: hamza zia Date: Fri, 15 Dec 2017 17:13:29 +0500 Subject: [PATCH] Revert "some minor modification" --- js/services/rpc/rpc.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/services/rpc/rpc.js b/js/services/rpc/rpc.js index 9cba9c5..8b57c3b 100644 --- a/js/services/rpc/rpc.js +++ b/js/services/rpc/rpc.js @@ -107,7 +107,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter alerts.addAlert('' + filter('translate')('Oh Snap!') + ' ' + filter('translate')('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, globalTimeout); + timeout = setTimeout(update, globalTimeout); } }; @@ -189,9 +189,10 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter else configurations = [conf]; - if (timeout) + if (timeout) { clearTimeout(timeout); - timeout = setTimeout(update, 0); + timeout = setTimeout(update, 0); + } }, // get current configuration being used