Fix bug 107766 "DeactivateEntry: bad cache entry state when quitting". The cache entry state is legitimate on shutdown. Change NS_WARNING to NS_ASSERTION that doesn't fire on shutdown. r=gagan, sr=darin.

This commit is contained in:
gordon%netscape.com 2002-02-19 05:32:18 +00:00
parent ab48b42be3
commit 51cf5d0033

View File

@ -1305,7 +1305,9 @@ nsCacheService::DeactivateEntry(nsCacheEntry * entry)
return;
}
} else {
NS_WARNING("DeactivateEntry: bad cache entry state\n");
// if mCacheServiceLock == nsnull,
// then we're shutting down and this state is okay.
NS_ASSERTION(!mCacheServiceLock, "DeactivateEntry: bad cache entry state\n");
}
device = entry->CacheDevice();