bug 744788 - add httpconnmgrtick setTarget() in case of offline/online r=honzab
authorPatrick McManus <mcmanus@ducksong.com>
Fri, 13 Apr 2012 15:47:43 -0400
changeset 91638 885bb3f8d0dda38a80f1280905c390f9e4808174
parent 91637 b9133ddb15c21c4cf12eee26460863708f2b8d0a
child 91639 ec68c96fb9dc4b974190627ae482c270e2e67ec7
push id22465
push usermak77@bonardo.net
push dateSat, 14 Apr 2012 11:58:29 +0000
treeherdermozilla-central@6880c195054f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershonzab
bugs744788
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 744788 - add httpconnmgrtick setTarget() in case of offline/online r=honzab
netwerk/protocol/http/nsHttpConnectionMgr.cpp
--- a/netwerk/protocol/http/nsHttpConnectionMgr.cpp
+++ b/netwerk/protocol/http/nsHttpConnectionMgr.cpp
@@ -2002,16 +2002,17 @@ nsHttpConnectionMgr::ActivateTimeoutTick
         return;
 
     if (!mReadTimeoutTick) {
         mReadTimeoutTick = do_CreateInstance(NS_TIMER_CONTRACTID);
         if (!mReadTimeoutTick) {
             NS_WARNING("failed to create timer for http timeout management");
             return;
         }
+        mReadTimeoutTick->SetTarget(mSocketThreadTarget);
     }
 
     NS_ABORT_IF_FALSE(!mReadTimeoutTickArmed, "timer tick armed");
     mReadTimeoutTickArmed = true;
     mReadTimeoutTick->Init(this, 1000, nsITimer::TYPE_REPEATING_SLACK);
 }
 
 void