forked from mirrors/gecko-dev
Bug 1770279 - Don't invoke null callbacks in RemoteLazyInputStream, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D147198
This commit is contained in:
parent
24dee696b4
commit
d76981c60a
1 changed files with 6 additions and 4 deletions
|
|
@ -751,10 +751,12 @@ RemoteLazyInputStream::AsyncWait(nsIInputStreamCallback* aCallback,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (aCallback) {
|
||||||
// if stream is nullptr here, that probably means the stream has
|
// if stream is nullptr here, that probably means the stream has
|
||||||
// been closed and the callback can be executed immediately
|
// been closed and the callback can be executed immediately
|
||||||
InputStreamCallbackRunnable::Execute(do_AddRef(aCallback),
|
InputStreamCallbackRunnable::Execute(do_AddRef(aCallback),
|
||||||
do_AddRef(eventTarget), this);
|
do_AddRef(eventTarget), this);
|
||||||
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue