diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-29 23:34:29 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-29 23:34:29 -0700 |
| commit | 3f4ec4032684ce1c1ee629cdf6fce992a01521b2 (patch) | |
| tree | 07a753d7f80cdfe2dfca5f37d8b4734054167720 /src/protocol/reqrep/rep.c | |
| parent | 86eaf052cc535658783dd5c3d5925f58fd70f983 (diff) | |
| download | nng-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.c | 2 |
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); } |
