mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Fix another deadlock.
This commit is contained in:
parent
4371649064
commit
cf4397873c
1 changed files with 5 additions and 3 deletions
|
|
@ -312,10 +312,12 @@ void Service::SetAcknowledgementExpiry(double timestamp)
|
|||
*/
|
||||
void Service::AcknowledgeProblem(AcknowledgementType type, double expiry)
|
||||
{
|
||||
ObjectLock olock(this);
|
||||
{
|
||||
ObjectLock olock(this);
|
||||
|
||||
SetAcknowledgement(type);
|
||||
SetAcknowledgementExpiry(expiry);
|
||||
SetAcknowledgement(type);
|
||||
SetAcknowledgementExpiry(expiry);
|
||||
}
|
||||
|
||||
RequestNotifications(NotificationAcknowledgement, GetLastCheckResult());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue