Removed over aggressive assert when the loadgroup listener factory does not exist

This commit is contained in:
rpotts%netscape.com 2000-01-04 05:46:47 +00:00
Родитель aebdc7d5fe
Коммит 672c0938ff
1 изменённых файлов: 1 добавлений и 7 удалений

8
netwerk/cache/mgr/nsCacheEntryChannel.cpp поставляемый
Просмотреть файл

@ -174,7 +174,7 @@ nsCacheEntryChannel::AsyncRead(PRUint32 aStartPosition, PRInt32 aReadCount,
mCacheEntry->NoteAccess(); mCacheEntry->NoteAccess();
nsCOMPtr<nsIStreamListener> headListener; nsCOMPtr<nsIStreamListener> headListener = aListener;
if (mLoadGroup) { if (mLoadGroup) {
mLoadGroup->GetDefaultLoadAttributes(&mLoadAttributes); mLoadGroup->GetDefaultLoadAttributes(&mLoadAttributes);
@ -186,12 +186,6 @@ nsCacheEntryChannel::AsyncRead(PRUint32 aStartPosition, PRInt32 aReadCount,
getter_AddRefs(headListener)); getter_AddRefs(headListener));
if (NS_FAILED(rv)) return rv; 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; CacheManagerStreamListener* cacheManagerStreamListener;