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:
Brian R. Bondy 2014-09-28 21:26:34 -04:00
Родитель d77bcd67fd
Коммит f7cb749319
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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();
}