From 25e801be9c4889b8df48cce842bbf2e2628d38db Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 9 May 2018 12:19:28 -0700 Subject: fixes #424 reqstress low frequency crash --- src/protocol/reqrep0/rep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/protocol') diff --git a/src/protocol/reqrep0/rep.c b/src/protocol/reqrep0/rep.c index 385860cd..019727be 100644 --- a/src/protocol/reqrep0/rep.c +++ b/src/protocol/reqrep0/rep.c @@ -355,6 +355,10 @@ rep0_pipe_stop(void *arg) rep0_ctx * ctx; nni_mtx_lock(&s->lk); + if (nni_list_active(&s->recvpipes, p)) { + // We are no longer "receivable". + nni_list_remove(&s->recvpipes, p); + } while ((ctx = nni_list_first(&p->sendq)) != NULL) { nni_aio *aio; nni_msg *msg; -- cgit v1.2.3-70-g09d2