aboutsummaryrefslogtreecommitdiff
path: root/src/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol')
-rw-r--r--src/protocol/reqrep/rep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c
index 38bf082a..036904b1 100644
--- a/src/protocol/reqrep/rep.c
+++ b/src/protocol/reqrep/rep.c
@@ -373,8 +373,7 @@ nni_rep_pipe_recv_cb(void *arg)
malformed:
// Failures here are bad enough to warrant to dropping the conn.
nni_msg_free(msg);
- nni_pipe_close(rp->pipe);
- nni_pipe_rele(rp->pipe);
+ nni_pipe_stop(rp->pipe);
}