diff options
Diffstat (limited to 'src/protocol/pipeline0')
| -rw-r--r-- | src/protocol/pipeline0/pull.c | 4 | ||||
| -rw-r--r-- | src/protocol/pipeline0/push.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/pipeline0/pull.c b/src/protocol/pipeline0/pull.c index 63243cb5..a713bc80 100644 --- a/src/protocol/pipeline0/pull.c +++ b/src/protocol/pipeline0/pull.c @@ -141,7 +141,7 @@ pull0_recv_cb(void *arg) if (nni_aio_result(aio) != 0) { // Failed to get a message, probably the pipe is closed. - nni_pipe_stop(p->pipe); + nni_pipe_close(p->pipe); return; } @@ -163,7 +163,7 @@ pull0_putq_cb(void *arg) // we can do. Just close the pipe. nni_msg_free(nni_aio_get_msg(aio)); nni_aio_set_msg(aio, NULL); - nni_pipe_stop(p->pipe); + nni_pipe_close(p->pipe); return; } diff --git a/src/protocol/pipeline0/push.c b/src/protocol/pipeline0/push.c index 9585b86c..00e9212c 100644 --- a/src/protocol/pipeline0/push.c +++ b/src/protocol/pipeline0/push.c @@ -163,7 +163,7 @@ push0_recv_cb(void *arg) // We normally expect to receive an error. If a pipe actually // sends us data, we just discard it. if (nni_aio_result(p->aio_recv) != 0) { - nni_pipe_stop(p->pipe); + nni_pipe_close(p->pipe); return; } nni_msg_free(nni_aio_get_msg(p->aio_recv)); @@ -180,7 +180,7 @@ push0_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->pipe); + nni_pipe_close(p->pipe); return; } @@ -195,7 +195,7 @@ push0_getq_cb(void *arg) if (nni_aio_result(aio) != 0) { // If the socket is closing, nothing else we can do. - nni_pipe_stop(p->pipe); + nni_pipe_close(p->pipe); return; } |
