зеркало из https://github.com/mozilla/gecko-dev.git
Bug 958554 - Fix about window sometimes saying nightly is being updatd by another instance. r=rstrong
Note that if the process is hung, or there is another instance running in a different user instance, or another profile is running, the message is perfectly normal. But this should prevent the bad case of getting this message. This handling was first added specifically for Metro and Firefox running the same intallation at the same time. Metro isn't being released but there are still other very valid reasons for having this handling as noted above.
This commit is contained in:
Родитель
d77bcd67fd
Коммит
f7cb749319
|
@ -2078,6 +2078,14 @@ UpdateService.prototype = {
|
|||
Services.obs.removeObserver(this, topic);
|
||||
Services.prefs.removeObserver(PREF_APP_UPDATE_LOG, this);
|
||||
|
||||
#ifdef XP_WIN
|
||||
// If we hold the update mutex, let it go!
|
||||
// The OS would clean this up sometime after shutdown,
|
||||
// but that would have no guarantee on timing.
|
||||
if (gUpdateMutexHandle) {
|
||||
closeHandle(gUpdateMutexHandle);
|
||||
}
|
||||
#endif
|
||||
if (this._retryTimer) {
|
||||
this._retryTimer.cancel();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче