Too many OnStopRequest(...) calls were being made by the memcache in AsyncReadStreamAdaptor::Cancel(...). It turns out that Cancel() is called more than once. Each call was generating an OnStopRequest(...). This was later triggering an ASSERT that mDownstreamListener was NULL

This commit is contained in:
rpotts%netscape.com 2000-02-12 06:18:50 +00:00
Родитель f374d65746
Коммит bfb8fe0af9
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -73,8 +73,13 @@ public:
nsresult
Cancel(void) {
if (!mAborted) {
mAborted = PR_TRUE;
return mEventQueueStreamListener->OnStopRequest(mChannel, mContext, NS_BINDING_ABORTED, nsnull);
} else {
// Cancel has already been called... Do not fire another OnStopRequest!
return NS_OK;
}
}
nsresult