aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/endpt.c')
-rw-r--r--src/core/endpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c
index d8f94d9b..7784de73 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -254,7 +254,7 @@ nni_ep_connect_sync(nni_ep *ep)
}
rv = nni_ep_connect_aio(ep, &pipe->p_tran_data);
if (rv != 0) {
- nni_pipe_remove(pipe);
+ nni_pipe_stop(pipe);
return (rv);
}
nni_pipe_start(pipe);
@@ -435,7 +435,7 @@ nni_ep_accept_sync(nni_ep *ep)
}
rv = nni_ep_accept_aio(ep, &pipe->p_tran_data);
if (rv != 0) {
- nni_pipe_remove(pipe);
+ nni_pipe_stop(pipe);
return (rv);
}
nni_pipe_start(pipe);