Index: remoting/host/heartbeat_sender.cc |
=================================================================== |
--- remoting/host/heartbeat_sender.cc (revision 55524) |
+++ remoting/host/heartbeat_sender.cc (working copy) |
@@ -65,7 +65,7 @@ |
return; |
} |
- DCHECK_EQ(INITIALIZED, state_); |
+ DCHECK(state_ == INITIALIZED); |
state_ = STARTED; |
request_.reset(jingle_client_->CreateIqRequest()); |
@@ -82,9 +82,7 @@ |
return; |
} |
- // We may call Stop() even if we have not started. |
- if (state_ != STARTED) |
- return; |
+ DCHECK(state_ == STARTED); |
state_ = STOPPED; |
request_.reset(NULL); |
} |