Bug 420549: don't ASSERT when removing an engine shortly after adding it, r=mano, a=beltzner

This commit is contained in:
gavin@gavinsharp.com 2008-03-05 14:13:41 -08:00
parent 409e455ef0
commit 25b745f0b3

View File

@ -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;