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

This commit is contained in:
2008-03-05 14:13:41 -08:00
parent a5834f24a5
commit f04be10b17

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;