1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

nanomsg: fix shutdown of node

This commit is contained in:
Steffen Vogel 2017-08-16 12:19:29 +02:00
parent a0053844fc
commit 53cff79da6

View file

@ -194,11 +194,11 @@ int nanomsg_stop(struct node *n)
int ret;
struct nanomsg *m = n->_vd;
ret = nn_shutdown(m->subscriber.socket, 0);
ret = nn_close(m->subscriber.socket);
if (ret < 0)
return ret;
ret = nn_shutdown(m->publisher.socket, 0);
ret = nn_close(m->publisher.socket);
if (ret < 0)
return ret;