Reset the failures count to 0 when restoring from suspend.

(imported from commit 11b03f8a0565063cc7381dd32a96af79bd26a0d1)
This commit is contained in:
Tim Abbott 2012-10-15 13:20:54 -04:00
parent bb9c6c4e4a
commit cd14988b47
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ setInterval(function() {
// new updates. // new updates.
get_updates_xhr.abort(); get_updates_xhr.abort();
clearTimeout(get_updates_timeout); clearTimeout(get_updates_timeout);
received.failures = 0;
get_updates(); get_updates();
} }
watchdog_time = new_time; watchdog_time = new_time;