Bug 1170645 - Only call nsWSAdmissionManager::OnStopSession() from one place
☠☠ backed out by 993b76cc659d ☠ ☠
authorJames Graham <james@hoppipolla.co.uk>
Mon, 08 Jun 2015 15:24:51 +0100
changeset 326816 8be32c64b0c660bed4057d91beedbe07f30c4df5
parent 326815 495d000aad5ef57daa5e0849f1b7f5be463de0e0
child 326817 993b76cc659ddcc235d342e489260703de797e63
push id10169
push userdminor@mozilla.com
push dateThu, 28 Jan 2016 13:10:48 +0000
bugs1170645
milestone41.0a1
Bug 1170645 - Only call nsWSAdmissionManager::OnStopSession() from one place
netwerk/protocol/websocket/WebSocketChannel.cpp
--- a/netwerk/protocol/websocket/WebSocketChannel.cpp
+++ b/netwerk/protocol/websocket/WebSocketChannel.cpp
@@ -2314,18 +2314,16 @@ WebSocketChannel::StopSession(nsresult r
     mCancelable = nullptr;
   }
 
   mPMCECompressor = nullptr;
 
   if (!mCalledOnStop) {
     mCalledOnStop = 1;
 
-    nsWSAdmissionManager::OnStopSession(this, reason);
-
     nsRefPtr<CallOnStop> runnable = new CallOnStop(this, reason);
     mTargetThread->Dispatch(runnable, NS_DISPATCH_NORMAL);
   }
 }
 
 void
 WebSocketChannel::AbortSession(nsresult reason)
 {