зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f374d65746
Коммит
bfb8fe0af9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче