Notify to all nodes that execution has completed

This commit is contained in:
Mattia Codato 2020-07-31 10:42:01 +02:00
parent a5698d5fde
commit 44fc841ee1

View File

@ -88,9 +88,9 @@ static void SendEventExecuteCommand(const Dictionary::Ptr& params, long exitStat
executedParams->Set("start", start);
executedParams->Set("end", end);
if (origin->IsLocal()) {
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
} else {
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
if (!origin->IsLocal()) {
Dictionary::Ptr executedMessage = new Dictionary();
executedMessage->Set("jsonrpc", "2.0");
executedMessage->Set("method", "event::ExecutedCommand");