diff --git a/netwerk/cache/mgr/nsCacheEntryChannel.cpp b/netwerk/cache/mgr/nsCacheEntryChannel.cpp index 6849bf8242be..097d597d2da5 100644 --- a/netwerk/cache/mgr/nsCacheEntryChannel.cpp +++ b/netwerk/cache/mgr/nsCacheEntryChannel.cpp @@ -174,7 +174,7 @@ nsCacheEntryChannel::AsyncRead(PRUint32 aStartPosition, PRInt32 aReadCount, mCacheEntry->NoteAccess(); - nsCOMPtr headListener; + nsCOMPtr headListener = aListener; if (mLoadGroup) { mLoadGroup->GetDefaultLoadAttributes(&mLoadAttributes); @@ -186,12 +186,6 @@ nsCacheEntryChannel::AsyncRead(PRUint32 aStartPosition, PRInt32 aReadCount, getter_AddRefs(headListener)); if (NS_FAILED(rv)) return rv; } - NS_ASSERTION(headListener, "Load group listener factory did not create listener"); - if (!headListener) - headListener = aListener; - - } else { - headListener = aListener; } CacheManagerStreamListener* cacheManagerStreamListener;