mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1317592 - don't try syncing other engines after one fails with a shutdown error. r=rnewman
MozReview-Commit-ID: LZ72JbOtpm4 --HG-- extra : rebase_source : 00493ea6d24470e5b45a2d42e8b64468427f89d3
This commit is contained in:
parent
136eb80ff1
commit
e6302fe87d
@ -329,6 +329,13 @@ EngineSynchronizer.prototype = {
|
||||
// appropriate value.
|
||||
return false;
|
||||
}
|
||||
// Note that policies.js has already logged info about the exception...
|
||||
if (Async.isShutdownException(e)) {
|
||||
// Failure due to a shutdown exception should prevent other engines
|
||||
// trying to start and immediately failing.
|
||||
this._log.info(`${engine.name} was interrupted by shutdown; no other engines will sync`);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user