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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c
index bb3ba268..901831ef 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -130,12 +130,11 @@ nni_endpt_connect(nni_endpt *ep, nni_pipe **pp)
static int
nni_dial_once(nni_endpt *ep)
{
- nni_socket *sock = ep->ep_sock;
nni_pipe *pipe;
int rv;
if (((rv = nni_endpt_connect(ep, &pipe)) == 0) &&
- ((rv = nni_socket_add_pipe(sock, pipe)) == 0)) {
+ ((rv = nni_pipe_start(pipe)) == 0)) {
return (0);
}
@@ -281,7 +280,6 @@ static void
nni_listener(void *arg)
{
nni_endpt *ep = arg;
- nni_socket *sock = ep->ep_sock;
nni_pipe *pipe;
int rv;
@@ -332,7 +330,7 @@ nni_listener(void *arg)
pipe = NULL;
if (((rv = nni_endpt_accept(ep, &pipe)) == 0) &&
- ((rv = nni_socket_add_pipe(sock, pipe)) == 0)) {
+ ((rv = nni_pipe_start(pipe)) == 0)) {
continue;
}
if (rv == NNG_ECLOSED) {