зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1231213 - IPCStreamSource should not attempt to read from its stream if already closed. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26161 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f4e4a5aedc
Коммит
08d1f8eb68
|
@ -243,6 +243,13 @@ void IPCStreamSource::OnStreamReady(Callback* aCallback) {
|
|||
MOZ_ASSERT(aCallback == mCallback);
|
||||
mCallback->ClearSource();
|
||||
mCallback = nullptr;
|
||||
|
||||
// Possibly closed if this callback is (indirectly) called by
|
||||
// IPCStreamSourceParent::RecvRequestClose().
|
||||
if (mState == eClosed) {
|
||||
return;
|
||||
}
|
||||
|
||||
DoRead();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче