Bug 1622861 - Check that Http3Session is present in HttpConnectionUDP::CloseTransaction. r=kershaw

Differential Revision: https://phabricator.services.mozilla.com/D67308

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dragana Damjanovic 2020-03-20 16:21:57 +00:00
Родитель 2c4e6310d5
Коммит 73917fdfe5
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -492,12 +492,14 @@ void HttpConnectionUDP::CloseTransaction(nsAHttpTransaction* trans,
}
mDontReuse = true;
mHttp3Session->SetCleanShutdown(aIsShutdown);
mHttp3Session->Close(reason);
if (!mHttp3Session->IsClosed()) {
// During closing phase we still keep mHttp3Session session,
// to resend CLOSE_CONNECTION frames.
return;
if (mHttp3Session) {
mHttp3Session->SetCleanShutdown(aIsShutdown);
mHttp3Session->Close(reason);
if (!mHttp3Session->IsClosed()) {
// During closing phase we still keep mHttp3Session session,
// to resend CLOSE_CONNECTION frames.
return;
}
}
mHttp3Session = nullptr;