Bug 1401538 - Drop mTimerScheduledAt at RequestContext::CancelTailedRequest when tail queue is empty. r=kershaw, a=ritu
authorHonza Bambas <honzab.moz@firemni.cz>
Tue, 10 Oct 2017 06:34:00 -0400
changeset 432416 6fcfa157e5b8
parent 432415 65861c4a6ba4
child 432417 fc014302c515
push id7951
push userryanvm@gmail.com
push date2017-10-12 01:54 +0000
treeherdermozilla-beta@4c2e84704183 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskershaw, ritu
bugs1401538
milestone57.0
Bug 1401538 - Drop mTimerScheduledAt at RequestContext::CancelTailedRequest when tail queue is empty. r=kershaw, a=ritu
netwerk/base/RequestContextService.cpp
--- a/netwerk/base/RequestContextService.cpp
+++ b/netwerk/base/RequestContextService.cpp
@@ -389,18 +389,18 @@ RequestContext::CancelTailedRequest(nsIR
 
   // Stop untail timer if all tail requests are canceled.
   if (removed && mTailQueue.IsEmpty()) {
     if (mUntailTimer) {
       mUntailTimer->Cancel();
       mUntailTimer = nullptr;
     }
 
-    // Must drop to stop tailing requests
-    mUntailAt = TimeStamp();
+    // Must drop to allow re-engage of the timer
+    mTimerScheduledAt = TimeStamp();
   }
 
   return NS_OK;
 }
 
 void
 RequestContext::ProcessTailQueue(nsresult aResult)
 {