Skip to content

Commit

Permalink
F #3859: Fix double start of monitor probe
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmontero authored May 20, 2020
2 parents 90de787 + 86399bd commit d10b9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monitor/src/monitor/HostMonitorManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ void HostMonitorManager::update_host(int oid, const std::string &xml)
{
stop_host_monitor(host);
}
else if (old_state == Host::OFFLINE || old_state == Host::ERROR ||
old_state == Host::INIT)
else if ((old_state == Host::OFFLINE || old_state == Host::ERROR)
&& !host->monitor_in_progress())
{
start_host_monitor(host);
}
Expand Down

0 comments on commit d10b9d3

Please sign in to comment.