Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2870)

Unified Diff: remoting/host/heartbeat_sender.cc

Issue 7307031: Remove DCHECK from HeartbeatSender::OnSignallingDisconnected() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698