From 932b7162a435172d64b203c934b088e9c36df25d Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Mon, 29 Jun 2020 09:28:02 +0200 Subject: [PATCH] Use RelayMessage instead of SyncSendMessage --- lib/icinga/apiactions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/icinga/apiactions.cpp b/lib/icinga/apiactions.cpp index 09aa38123..0a65715db 100644 --- a/lib/icinga/apiactions.cpp +++ b/lib/icinga/apiactions.cpp @@ -652,7 +652,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object, updateMessage->Set("params", updateParams); MessageOrigin::Ptr origin = new MessageOrigin(); - listener->SyncSendMessage(endpointPtr, updateMessage); + listener->RelayMessage(origin, checkable, updateMessage, true); /* Execute command */ Dictionary::Ptr execMessage = new Dictionary(); @@ -678,7 +678,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object, execParams->Set("source", uuid); execParams->Set("deadline", deadline); - listener->SyncSendMessage(endpointPtr, execMessage); + listener->RelayMessage(origin, checkable, execMessage, true); } Dictionary::Ptr result = new Dictionary();