diff --git a/src/watchdog.cpp b/src/watchdog.cpp index 78a563ca5c9d933e0db628ebcddd6c9d8b827e00..3f06cbf0fd804ab7f889573106440c4f03701d8b 100644 --- a/src/watchdog.cpp +++ b/src/watchdog.cpp @@ -19,7 +19,7 @@ bool CROSWatchdog::is_active(void) ros::Time current_time=ros::Time::now(); pthread_mutex_lock(&this->access_); - if((current_time-this->start_time)>this->max_time) + if((current_time-this->start_time)>=this->max_time) { pthread_mutex_unlock(&this->access_); return true;