зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1880338: null-check child ptr in WebTransport shutdown r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D201849
This commit is contained in:
Родитель
fd40c69c47
Коммит
b6d9e456cb
|
@ -445,8 +445,10 @@ void WebTransport::RejectWaitingConnection(nsresult aRv) {
|
|||
// these steps.
|
||||
if (mState == WebTransportState::CLOSED ||
|
||||
mState == WebTransportState::FAILED) {
|
||||
mChild->Shutdown(true);
|
||||
mChild = nullptr;
|
||||
if (mChild) {
|
||||
mChild->Shutdown(true);
|
||||
mChild = nullptr;
|
||||
}
|
||||
// Cleanup should have been called, which means Ready has been
|
||||
// rejected and pulls resolved
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче