From f7463b4bd9b549a152b28aff959113b9ab56959a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 13 Jul 2017 22:19:20 -0700 Subject: Use the same pipe teardown in all circumstances. --- src/core/endpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/endpt.c') 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); -- cgit v1.2.3-70-g09d2