mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user