aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep0/req.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/reqrep0/req.c')
-rw-r--r--src/protocol/reqrep0/req.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol/reqrep0/req.c b/src/protocol/reqrep0/req.c
index cb716941..0112f835 100644
--- a/src/protocol/reqrep0/req.c
+++ b/src/protocol/reqrep0/req.c
@@ -311,6 +311,8 @@ req0_recv_cb(void *arg)
// Schedule another receive while we are processing this.
nni_mtx_lock(&s->mtx);
+
+ // NB: If close was called, then this will just abort.
nni_pipe_recv(p->pipe, &p->aio_recv);
// Look for a context to receive it.