mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 02:07:53 +02:00
Use RelayMessage instead of SyncSendMessage
This commit is contained in:
parent
8444cccd37
commit
932b7162a4
@ -652,7 +652,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
|||||||
updateMessage->Set("params", updateParams);
|
updateMessage->Set("params", updateParams);
|
||||||
|
|
||||||
MessageOrigin::Ptr origin = new MessageOrigin();
|
MessageOrigin::Ptr origin = new MessageOrigin();
|
||||||
listener->SyncSendMessage(endpointPtr, updateMessage);
|
listener->RelayMessage(origin, checkable, updateMessage, true);
|
||||||
|
|
||||||
/* Execute command */
|
/* Execute command */
|
||||||
Dictionary::Ptr execMessage = new Dictionary();
|
Dictionary::Ptr execMessage = new Dictionary();
|
||||||
@ -678,7 +678,7 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
|||||||
execParams->Set("source", uuid);
|
execParams->Set("source", uuid);
|
||||||
execParams->Set("deadline", deadline);
|
execParams->Set("deadline", deadline);
|
||||||
|
|
||||||
listener->SyncSendMessage(endpointPtr, execMessage);
|
listener->RelayMessage(origin, checkable, execMessage, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary::Ptr result = new Dictionary();
|
Dictionary::Ptr result = new Dictionary();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user