landing gordon's patch for bug 81724 - disk cache needs stream wrappers
(disk cache phase 3) patch=gordon r=dougt sr=darin git-svn-id: svn://10.0.0.236/trunk@126569 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
3
mozilla/netwerk/cache/src/nsCacheEntry.cpp
vendored
3
mozilla/netwerk/cache/src/nsCacheEntry.cpp
vendored
@@ -304,8 +304,9 @@ nsCacheEntry::RemoveRequest(nsCacheRequest * request)
|
||||
PRBool
|
||||
nsCacheEntry::RemoveDescriptor(nsCacheEntryDescriptor * descriptor)
|
||||
{
|
||||
// XXX if debug: verify this descriptor belongs to this entry
|
||||
NS_ASSERTION(descriptor->CacheEntry() == this, "### Wrong cache entry!!");
|
||||
PR_REMOVE_AND_INIT_LINK(descriptor);
|
||||
descriptor->ClearCacheEntry();
|
||||
|
||||
if (!PR_CLIST_IS_EMPTY(&mDescriptorQ))
|
||||
return PR_TRUE; // stay active if we still have open descriptors
|
||||
|
||||
Reference in New Issue
Block a user