F #3859: Fix double start of monitor probe

This commit is contained in:
Pavel Czerny committed 2020-05-19 19:43:38 +02:00
1 parent e39cb25824
commit 86399bd336
1 file changed
+2 -2
@@ -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);
}