Skip to content

Commit

Permalink
Detect oneway request when REP type is Empty.
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Mar 8, 2024
1 parent 1149787 commit 26d669b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/gz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ extern "C" void cmdServiceReq(const char *_service,
Node node;
bool result;

if (_timeout == -1)
if (_timeout == -1 || !strcmp(_repType, "gz.msgs.Empty"))
{
// One-way service.
node.Request(_service, *req, 1000, *rep, result);
Expand Down

0 comments on commit 26d669b

Please sign in to comment.