]> granicus.if.org Git - icinga2/commitdiff
Fixed invalid cast in Service::BeginExecuteCheck().
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 22 Jan 2013 10:11:11 +0000 (11:11 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 22 Jan 2013 10:11:11 +0000 (11:11 +0100)
lib/icinga/service.cpp

index 8e4e03e6c5607b043629d8b2297749b139ac8377..979dd2e5b998e88be7652ff789c318860a6ce879 100644 (file)
@@ -484,7 +484,7 @@ void Service::OnAttributeChanged(const String& name, const Value& oldValue)
 void Service::BeginExecuteCheck(const function<void (void)>& callback)
 {
        /* don't run another check if there is one pending */
-       if (Get("current_task")) {
+       if (!Get("current_task").IsEmpty()) {
                /* we need to call the callback anyway */
                callback();