diff options
Diffstat (limited to 'src/protocol/pubsub0/sub.c')
| -rw-r--r-- | src/protocol/pubsub0/sub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/pubsub0/sub.c b/src/protocol/pubsub0/sub.c index 2e8be4be..cb6d781f 100644 --- a/src/protocol/pubsub0/sub.c +++ b/src/protocol/pubsub0/sub.c @@ -164,7 +164,7 @@ sub0_recv_cb(void *arg) nni_msg * msg; if (nni_aio_result(p->aio_recv) != 0) { - nni_pipe_stop(p->pipe); + nni_pipe_close(p->pipe); return; } @@ -182,7 +182,7 @@ sub0_recv_cb(void *arg) // Any other error we stop the pipe for. It's probably // NNG_ECLOSED anyway. nng_msg_free(msg); - nni_pipe_stop(p->pipe); + nni_pipe_close(p->pipe); return; } nni_pipe_recv(p->pipe, p->aio_recv); |
