1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

F #3859: Fix double start of monitor probe

This commit is contained in:
Ruben S. Montero
2020-05-20 10:08:19 +02:00
committed by GitHub

View File

@ -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);
}