]> granicus.if.org Git - icinga2/commitdiff
Avoid unnecessary async callback.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 17 Mar 2014 08:09:55 +0000 (09:09 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 17 Mar 2014 08:09:55 +0000 (09:09 +0100)
Refs #5748

lib/icinga/service-check.cpp

index 5d4679007cd849b4c2c5b3650af1f51d0b0fe5c1..b14fff0f5b2c066ca1b4a3494725942894bab005 100644 (file)
@@ -518,7 +518,7 @@ void Service::ExecuteCheck(void)
        result->SetScheduleStart(scheduled_start);
        result->SetExecutionStart(before_check);
 
-       Utility::QueueAsyncCallback(boost::bind(&CheckCommand::Execute, GetCheckCommand(), GetSelf(), result));
+       GetCheckCommand()->Execute(GetSelf(), result);
 }
 
 void Service::UpdateStatistics(const CheckResult::Ptr& cr)