diff options
-rw-r--r-- | src/components/connection_handler/include/connection_handler/heartbeat_monitor.h | 2 | ||||
-rw-r--r-- | src/components/connection_handler/src/heartbeat_monitor.cc | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/components/connection_handler/include/connection_handler/heartbeat_monitor.h b/src/components/connection_handler/include/connection_handler/heartbeat_monitor.h index e00408f24..70c7aa4cd 100644 --- a/src/components/connection_handler/include/connection_handler/heartbeat_monitor.h +++ b/src/components/connection_handler/include/connection_handler/heartbeat_monitor.h @@ -83,8 +83,6 @@ class HeartBeatMonitor: public threads::ThreadDelegate { // \brief Connection that must be closed when timeout elapsed Connection *connection_; - static const int32_t kDefaultCycleTimeout = 100000; - class SessionState { public: explicit SessionState(int32_t heartbeat_timeout_seconds = 0); diff --git a/src/components/connection_handler/src/heartbeat_monitor.cc b/src/components/connection_handler/src/heartbeat_monitor.cc index fd081c331..fe2abbd1e 100644 --- a/src/components/connection_handler/src/heartbeat_monitor.cc +++ b/src/components/connection_handler/src/heartbeat_monitor.cc @@ -141,6 +141,7 @@ void HeartBeatMonitor::set_heartbeat_timeout_seconds(int32_t timeout, AutoLock session_locker(sessions_list_lock_); if (sessions_.end() != sessions_.find(session_id)) { sessions_[session_id].UpdateTimeout(timeout); + heartbeat_monitor_.NotifyOne(); } } |