aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep/rep.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-29 23:34:29 -0700
committerGarrett D'Amore <garrett@damore.org>2017-03-29 23:34:29 -0700
commit3f4ec4032684ce1c1ee629cdf6fce992a01521b2 (patch)
tree07a753d7f80cdfe2dfca5f37d8b4734054167720 /src/protocol/reqrep/rep.c
parent86eaf052cc535658783dd5c3d5925f58fd70f983 (diff)
downloadnng-3f4ec4032684ce1c1ee629cdf6fce992a01521b2.tar.gz
nng-3f4ec4032684ce1c1ee629cdf6fce992a01521b2.tar.bz2
nng-3f4ec4032684ce1c1ee629cdf6fce992a01521b2.zip
Hopefully close shutdown race in rep.
Diffstat (limited to 'src/protocol/reqrep/rep.c')
-rw-r--r--src/protocol/reqrep/rep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c
index ec5b77cf..a7295eec 100644
--- a/src/protocol/reqrep/rep.c
+++ b/src/protocol/reqrep/rep.c
@@ -110,11 +110,11 @@ nni_rep_sock_fini(void *arg)
{
nni_rep_sock *rep = arg;
+ nni_aio_fini(&rep->aio_getq);
nni_idhash_fini(&rep->pipes);
if (rep->btrace != NULL) {
nni_free(rep->btrace, rep->btrace_len);
}
- nni_aio_fini(&rep->aio_getq);
NNI_FREE_STRUCT(rep);
}