summaryrefslogtreecommitdiffstats
path: root/remoting/host/heartbeat_sender.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/heartbeat_sender.cc')
-rw-r--r--remoting/host/heartbeat_sender.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc
index ed000e6..5b6d20b 100644
--- a/remoting/host/heartbeat_sender.cc
+++ b/remoting/host/heartbeat_sender.cc
@@ -153,6 +153,10 @@ void HeartbeatSender::ProcessResponse(IqRequest* request,
return;
}
+ // Notify listener of the first successful heartbeat.
+ if (!heartbeat_succeeded_) {
+ listener_->OnHeartbeatSuccessful();
+ }
heartbeat_succeeded_ = true;
// This method must only be called for error or result stanzas.