From 446b150032f24c34644f0ab91ac6ab9206250865 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 17 Aug 2017 23:57:09 -0700 Subject: Endpoint API completely implemented. This supports creating listeners and dialers, managing options on them (though only a few options are supported at present), starting them and closing them, all independently. --- src/core/pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/pipe.c') diff --git a/src/core/pipe.c b/src/core/pipe.c index cdbeb6a7..94524da4 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -117,7 +117,9 @@ nni_pipe_destroy(nni_pipe *p) if (nni_list_node_active(&p->p_ep_node)) { nni_ep_pipe_remove(p->p_ep, p); } - nni_sock_pipe_remove(p->p_sock, p); + if (nni_list_node_active(&p->p_sock_node)) { + nni_sock_pipe_remove(p->p_sock, p); + } if (p->p_tran_data != NULL) { p->p_tran_ops.p_fini(p->p_tran_data); -- cgit v1.2.3-70-g09d2