Fixed invalid cast in Service::BeginExecuteCheck().

This commit is contained in:
Gunnar Beutner 2013-01-22 11:11:11 +01:00
parent 8c2ab8f552
commit 20eaa441df
1 changed files with 1 additions and 1 deletions

View 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();