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
Родитель 8183e540fc
Коммит 343ee3836f
1 изменённых файлов: 3 добавлений и 1 удалений

4
netwerk/cache/src/nsCacheService.cpp поставляемый
Просмотреть файл

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