aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-07 16:12:41 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-07 16:12:41 -0700
commit22d991fda77578dd03c8d477f8427631e6383cee (patch)
treec81eb35a13fbeb1dab8f8e6ca62dc8ccf42636e0 /src/core/endpt.c
parentc5354ea49184a359df8d477e844b1c52aeb234d5 (diff)
downloadnng-22d991fda77578dd03c8d477f8427631e6383cee.tar.gz
nng-22d991fda77578dd03c8d477f8427631e6383cee.tar.bz2
nng-22d991fda77578dd03c8d477f8427631e6383cee.zip
Subsystem initialize is idempotent; simplify cleanup.
Diffstat (limited to 'src/core/endpt.c')
-rw-r--r--src/core/endpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c
index 0a5862f0..a5865acf 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -62,8 +62,8 @@ nni_ep_sys_fini(void)
nni_ep_reap_run = 0;
nni_cv_wake(&nni_ep_reap_cv);
nni_mtx_unlock(&nni_ep_reap_lk);
- nni_thr_fini(&nni_ep_reap_thr);
}
+ nni_thr_fini(&nni_ep_reap_thr);
nni_cv_fini(&nni_ep_reap_cv);
nni_mtx_fini(&nni_ep_reap_lk);
nni_idhash_fini(nni_eps);