mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 420549: don't ASSERT when removing an engine shortly after adding it, r=mano, a=beltzner
This commit is contained in:
parent
409e455ef0
commit
25b745f0b3
@ -2754,6 +2754,12 @@ SearchService.prototype = {
|
||||
engineToRemove.hidden = true;
|
||||
engineToRemove.alias = null;
|
||||
} else {
|
||||
// Cancel the lazy serialization timer if it's running
|
||||
if (engineToRemove._serializeTimer) {
|
||||
engineToRemove._serializeTimer.cancel();
|
||||
engineToRemove._serializeTimer = null;
|
||||
}
|
||||
|
||||
// Remove the engine file from disk (this might throw)
|
||||
engineToRemove._remove();
|
||||
engineToRemove._file = null;
|
||||
|
Loading…
Reference in New Issue
Block a user