From 709e8c925efd525885a28d3c4b52fa6b366e166e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 19 Jun 2013 14:28:46 +0200 Subject: [PATCH] Bugfix for removing expired downtimes. --- lib/icinga/service-downtime.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/icinga/service-downtime.cpp b/lib/icinga/service-downtime.cpp index 5720e35c6..43345fca3 100644 --- a/lib/icinga/service-downtime.cpp +++ b/lib/icinga/service-downtime.cpp @@ -342,7 +342,10 @@ void Service::RemoveExpiredDowntimes(void) downtimes->Remove(id); } - Touch("downtimes"); + { + ObjectLock olock(this); + Touch("downtimes"); + } } }