1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +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
commit d10b9d362c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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