From 20eaa441dfc69b24803bc97a8594a4ac8c7ece5c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 22 Jan 2013 11:11:11 +0100 Subject: [PATCH] Fixed invalid cast in Service::BeginExecuteCheck(). --- lib/icinga/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp index 8e4e03e6c..979dd2e5b 100644 --- a/lib/icinga/service.cpp +++ b/lib/icinga/service.cpp @@ -484,7 +484,7 @@ void Service::OnAttributeChanged(const String& name, const Value& oldValue) void Service::BeginExecuteCheck(const function& 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(); -- 2.50.0