aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nng.c b/src/nng.c
index 23ab4319..531ba35a 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -267,7 +267,7 @@ nng_endpoint_close(nng_endpoint eid)
int rv;
nni_ep *ep;
- if ((rv = nni_ep_hold_close(&ep, eid)) != 0) {
+ if ((rv = nni_ep_hold(&ep, eid)) != 0) {
return (rv);
}
nni_ep_close(ep);