Bug 1812048 - Call MaybeResumeSend to avoid stall, r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D167668
This commit is contained in:
Kershaw Chang 2023-01-24 16:53:26 +00:00
parent 02aa0faaee
commit 1688031bdc
2 changed files with 5 additions and 1 deletions

View file

@ -2260,6 +2260,7 @@ void Http3Session::WebTransportNegotiationDone() {
}
}
mWaitingForWebTransportNegotiation.Clear();
MaybeResumeSend();
}
//=========================================================================

View file

@ -332,7 +332,10 @@ void Http3WebTransportSession::Close(nsresult aResult) {
void Http3WebTransportSession::OnSessionClosed(uint32_t aStatus,
nsACString& aReason) {
MOZ_ASSERT(!mTransaction);
if (mTransaction) {
mTransaction->Close(NS_BASE_STREAM_CLOSED);
mTransaction = nullptr;
}
if (mListener) {
mListener->OnSessionClosed(aStatus, aReason);
mListener = nullptr;