From 5a7d56f4a3d5dbf6b533fa07ab6a0da31ab4aa1c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 17 Mar 2014 09:09:55 +0100 Subject: [PATCH] Avoid unnecessary async callback. Refs #5748 --- lib/icinga/service-check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/service-check.cpp b/lib/icinga/service-check.cpp index 5d4679007..b14fff0f5 100644 --- a/lib/icinga/service-check.cpp +++ b/lib/icinga/service-check.cpp @@ -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)