mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
f4cd6aa37f
commit
d0465e893d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user