From 3d4be5126f91978b7d7349de79334ecfc8fc2afe Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 11 Mar 2017 22:38:21 -0800 Subject: Notification working - separate thread now. --- src/protocol/reqrep/rep.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/protocol/reqrep/rep.c') diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c index 736e4099..55a6855c 100644 --- a/src/protocol/reqrep/rep.c +++ b/src/protocol/reqrep/rep.c @@ -109,13 +109,12 @@ nni_rep_sock_fini(void *arg) { nni_rep_sock *rep = arg; - if (rep != NULL) { - nni_idhash_fini(&rep->pipes); - if (rep->btrace != NULL) { - nni_free(rep->btrace, rep->btrace_len); - } - NNI_FREE_STRUCT(rep); + 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); } -- cgit v1.2.3-70-g09d2