diff options
Diffstat (limited to 'src/protocol/survey0/xrespond.c')
| -rw-r--r-- | src/protocol/survey0/xrespond.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/survey0/xrespond.c b/src/protocol/survey0/xrespond.c index 03a47e92..334c5ca6 100644 --- a/src/protocol/survey0/xrespond.c +++ b/src/protocol/survey0/xrespond.c @@ -247,7 +247,7 @@ xresp0_getq_cb(void *arg) xresp0_pipe *p = arg; if (nni_aio_result(p->aio_getq) != 0) { - nni_pipe_stop(p->npipe); + nni_pipe_close(p->npipe); return; } @@ -265,7 +265,7 @@ xresp0_send_cb(void *arg) if (nni_aio_result(p->aio_send) != 0) { nni_msg_free(nni_aio_get_msg(p->aio_send)); nni_aio_set_msg(p->aio_send, NULL); - nni_pipe_stop(p->npipe); + nni_pipe_close(p->npipe); return; } @@ -282,7 +282,7 @@ xresp0_recv_cb(void *arg) int hops; if (nni_aio_result(p->aio_recv) != 0) { - nni_pipe_stop(p->npipe); + nni_pipe_close(p->npipe); return; } @@ -308,7 +308,7 @@ xresp0_recv_cb(void *arg) if (nni_msg_len(msg) < 4) { // Peer sent us garbage, so kick it. nni_msg_free(msg); - nni_pipe_stop(p->npipe); + nni_pipe_close(p->npipe); return; } body = nni_msg_body(msg); @@ -340,7 +340,7 @@ xresp0_putq_cb(void *arg) if (nni_aio_result(p->aio_putq) != 0) { nni_msg_free(nni_aio_get_msg(p->aio_putq)); nni_aio_set_msg(p->aio_putq, NULL); - nni_pipe_stop(p->npipe); + nni_pipe_close(p->npipe); return; } |
