forked from mirrors/gecko-dev
Bug 1904168 - Make sure fallback connection work, a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D215016 Differential Revision: https://phabricator.services.mozilla.com/D215064
This commit is contained in:
parent
0da5cdc8ad
commit
76d8379592
1 changed files with 6 additions and 1 deletions
|
|
@ -70,10 +70,15 @@ nsresult SpeculativeTransaction::ReadSegments(nsAHttpSegmentReader* aReader,
|
|||
|
||||
void SpeculativeTransaction::Close(nsresult aReason) {
|
||||
MOZ_ASSERT(OnSocketThread(), "not on socket thread");
|
||||
LOG(("SpeculativeTransaction::Close %p aReason=%" PRIx32, this,
|
||||
static_cast<uint32_t>(aReason)));
|
||||
NullHttpTransaction::Close(aReason);
|
||||
|
||||
if (aReason == NS_BASE_STREAM_CLOSED) {
|
||||
aReason = NS_OK;
|
||||
}
|
||||
if (mCloseCallback) {
|
||||
mCloseCallback(mTriedToWrite && aReason == NS_BASE_STREAM_CLOSED);
|
||||
mCloseCallback(mTriedToWrite && NS_SUCCEEDED(aReason));
|
||||
mCloseCallback = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue