mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1197625 - delay sync on wake for 5 seconds in the hope the network is back up by then. r=rnewman
This commit is contained in:
parent
2d80f48ded
commit
673ca5833e
@ -272,10 +272,11 @@ SyncScheduler.prototype = {
|
||||
case "wake_notification":
|
||||
this._log.debug("Woke from sleep.");
|
||||
Utils.nextTick(() => {
|
||||
// Trigger a sync if we have multiple clients.
|
||||
// Trigger a sync if we have multiple clients. We give it 5 seconds
|
||||
// incase the network is still in the process of coming back up.
|
||||
if (this.numClients > 1) {
|
||||
this._log.debug("More than 1 client. Syncing.");
|
||||
this.scheduleNextSync(0);
|
||||
this._log.debug("More than 1 client. Will sync in 5s.");
|
||||
this.scheduleNextSync(5000);
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user