aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 92a974a8..5e5493b5 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -41,7 +41,7 @@ nni_ep_rele(nni_ep *ep)
{
nni_mtx_lock(nni_idlock);
ep->ep_refcnt--;
- if (ep->ep_refcnt == 1) {
+ if (ep->ep_refcnt == 0) {
nni_cv_wake(&ep->ep_refcv);
}
nni_mtx_unlock(nni_idlock);