Merge pull request #414 from ziahamza/revert-392-master

Revert #392
This commit is contained in:
hamza zia 2017-12-15 17:13:49 +05:00 committed by GitHub
commit 73deac0d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
alerts.addAlert('<strong>' + filter('translate')('Oh Snap!') + '</strong> ' + alerts.addAlert('<strong>' + filter('translate')('Oh Snap!') + '</strong> ' +
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') 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'); , 'error');
// timeout = setTimeout(update, globalTimeout); timeout = setTimeout(update, globalTimeout);
} }
}; };
@ -189,9 +189,10 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
else else
configurations = [conf]; configurations = [conf];
if (timeout) if (timeout) {
clearTimeout(timeout); clearTimeout(timeout);
timeout = setTimeout(update, 0); timeout = setTimeout(update, 0);
}
}, },
// get current configuration being used // get current configuration being used