Fix another deadlock.

This commit is contained in:
Gunnar Beutner 2013-03-08 16:36:26 +01:00
parent 4371649064
commit cf4397873c
1 changed files with 5 additions and 3 deletions

View File

@ -311,11 +311,13 @@ void Service::SetAcknowledgementExpiry(double timestamp)
* @threadsafety Always.
*/
void Service::AcknowledgeProblem(AcknowledgementType type, double expiry)
{
{
ObjectLock olock(this);
SetAcknowledgement(type);
SetAcknowledgementExpiry(expiry);
}
RequestNotifications(NotificationAcknowledgement, GetLastCheckResult());
}