Merge pull request #219 from johnswanson/master

Reconnect when token changes on successful connection
This commit is contained in:
hamza zia 2016-05-05 10:06:38 +08:00
commit dc177a7a8f

View File

@ -122,6 +122,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
});
if (failed) {
needNewConnection = true;
alerts.addAlert('<strong>Oh Snap!</strong> 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, globalTimeout);
return;