Index: remoting/host/heartbeat_sender.cc |
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc |
index ad87658fc5f9cd113058abf13f49420f5ebddfe6..1e3dd388cd17a50a277a60e4026567b3b9188e45 100644 |
--- a/remoting/host/heartbeat_sender.cc |
+++ b/remoting/host/heartbeat_sender.cc |
@@ -81,9 +81,10 @@ void HeartbeatSender::OnSignallingConnected(SignalStrategy* signal_strategy, |
void HeartbeatSender::OnSignallingDisconnected() { |
DCHECK_EQ(MessageLoop::current(), message_loop_); |
- DCHECK_EQ(state_, STARTED); |
- state_ = STOPPED; |
- request_.reset(NULL); |
+ if (state_ == STARTED) { |
+ state_ = STOPPED; |
+ request_.reset(NULL); |
Wez
2011/07/06 22:45:15
This change means that the heart-beat request only
|
+ } |
} |
// Ignore any notifications other than signalling |