mirror of https://github.com/Icinga/icinga2.git
fix object lock
This commit is contained in:
parent
446d9ad7c6
commit
15f88c9582
|
@ -470,9 +470,6 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr)
|
|||
|
||||
bool reachable = IsReachable();
|
||||
|
||||
if (!reachable)
|
||||
SetLastStateUnreachable(Utility::GetTime());
|
||||
|
||||
Host::Ptr host = GetHost();
|
||||
bool host_reachable = true;
|
||||
|
||||
|
@ -525,6 +522,9 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr)
|
|||
SetLastStateUnknown(Utility::GetTime());
|
||||
}
|
||||
|
||||
if (!reachable)
|
||||
SetLastStateUnreachable(Utility::GetTime());
|
||||
|
||||
SetCurrentCheckAttempt(attempt);
|
||||
|
||||
int state = cr->Get("state");
|
||||
|
|
Loading…
Reference in New Issue