Skip to content
Permalink
Browse files

Merge pull request #654 from smalls12/master

Track return codes
  • Loading branch information
keent committed Feb 7, 2020
2 parents 729410e + 2bffd2a commit f67d5427585bbde8e783a783b465641b14a2e5fd
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/zyre.c
@@ -552,10 +552,15 @@ zyre_shout (zyre_t *self, const char *group, zmsg_t **msg_p)
assert (group);
assert (msg_p);

zstr_sendm (self->actor, "SHOUT");
zstr_sendm (self->actor, group);
zmsg_send (msg_p, self->actor);
return 0;
if (zstr_sendm (self->actor, "SHOUT") == -1) {
return -1;
}

if (zstr_sendm (self->actor, group) == -1) {
return -1;
}

return zmsg_send (msg_p, self->actor);
}


0 comments on commit f67d542

Please sign in to comment.
You can’t perform that action at this time.