summaryrefslogtreecommitdiff
path: root/src/protocol
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-11 22:38:21 -0800
committerGarrett D'Amore <garrett@damore.org>2017-03-11 22:38:21 -0800
commit3d4be5126f91978b7d7349de79334ecfc8fc2afe (patch)
treec8cfadbb1096e99cad21bddbb9fe9ff7b5dd175a /src/protocol
parent3d90bae8eda62fecdf367932fca591b965838e20 (diff)
downloadnng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.tar.gz
nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.tar.bz2
nng-3d4be5126f91978b7d7349de79334ecfc8fc2afe.zip
Notification working - separate thread now.
Diffstat (limited to 'src/protocol')
-rw-r--r--src/protocol/reqrep/rep.c11
-rw-r--r--src/protocol/survey/survey.c1
2 files changed, 6 insertions, 6 deletions
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);
}
diff --git a/src/protocol/survey/survey.c b/src/protocol/survey/survey.c
index 323a262b..4fa89af3 100644
--- a/src/protocol/survey/survey.c
+++ b/src/protocol/survey/survey.c
@@ -108,6 +108,7 @@ nni_surv_sock_fini(void *arg)
{
nni_surv_sock *psock = arg;
+ nni_aio_fini(&psock->aio_getq);
NNI_FREE_STRUCT(psock);
}