summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http/Http2Stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/protocol/http/Http2Stream.cpp')
-rw-r--r--netwerk/protocol/http/Http2Stream.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/netwerk/protocol/http/Http2Stream.cpp b/netwerk/protocol/http/Http2Stream.cpp
index 22d8142c9..4401a2612 100644
--- a/netwerk/protocol/http/Http2Stream.cpp
+++ b/netwerk/protocol/http/Http2Stream.cpp
@@ -1478,8 +1478,12 @@ bool
Http2Stream::Do0RTT()
{
MOZ_ASSERT(mTransaction);
- mAttempting0RTT = true;
- return mTransaction->Do0RTT();
+ if mTransaction->Do0RTT() {
+ mAttempting0RTT = true;
+ } else {
+ mAttempting0RTT = false;
+ }
+ return mAttempting0RTT;
}
nsresult