]> granicus.if.org Git - icinga2/commitdiff
Bugfix for removing expired downtimes.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 19 Jun 2013 12:28:46 +0000 (14:28 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 19 Jun 2013 12:28:46 +0000 (14:28 +0200)
lib/icinga/service-downtime.cpp

index 5720e35c6472cd4016d82fb3f4265ba3cb0fe160..43345fca3cebafaeabe71544e47baddde5a278ca 100644 (file)
@@ -342,7 +342,10 @@ void Service::RemoveExpiredDowntimes(void)
                        downtimes->Remove(id);
                }
 
-               Touch("downtimes");
+               {
+                       ObjectLock olock(this);
+                       Touch("downtimes");
+               }
        }
 }