mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Fix another deadlock.
This commit is contained in:
parent
4371649064
commit
cf4397873c
@ -312,10 +312,12 @@ void Service::SetAcknowledgementExpiry(double timestamp)
|
|||||||
*/
|
*/
|
||||||
void Service::AcknowledgeProblem(AcknowledgementType type, double expiry)
|
void Service::AcknowledgeProblem(AcknowledgementType type, double expiry)
|
||||||
{
|
{
|
||||||
ObjectLock olock(this);
|
{
|
||||||
|
ObjectLock olock(this);
|
||||||
|
|
||||||
SetAcknowledgement(type);
|
SetAcknowledgement(type);
|
||||||
SetAcknowledgementExpiry(expiry);
|
SetAcknowledgementExpiry(expiry);
|
||||||
|
}
|
||||||
|
|
||||||
RequestNotifications(NotificationAcknowledgement, GetLastCheckResult());
|
RequestNotifications(NotificationAcknowledgement, GetLastCheckResult());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user