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:
parent
a0053844fc
commit
53cff79da6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue