From e0fff1f9c45f5486fc2e7eeb49b4462c3bb2dad4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 29 Dec 2018 20:13:11 -0800 Subject: fixes #835 inproc should use new option API Some more changes to use nni_type instead of nni_opt_type are included as well. --- src/core/transport.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/transport.c') diff --git a/src/core/transport.c b/src/core/transport.c index da192416..54c4bcfe 100644 --- a/src/core/transport.c +++ b/src/core/transport.c @@ -128,6 +128,7 @@ nni_tran_chkopt(const char *name, const void *v, size_t sz, int typ) if ((dops->d_setopt != NULL) && ((rv = dops->d_setopt(NULL, name, v, sz, typ)) != NNG_ENOTSUP)) { + nni_mtx_unlock(&nni_tran_lk); return (rv); } for (o = dops->d_options; o && o->o_name != NULL; o++) { @@ -146,6 +147,7 @@ nni_tran_chkopt(const char *name, const void *v, size_t sz, int typ) if ((lops->l_setopt != NULL) && ((rv = lops->l_setopt(NULL, name, v, sz, typ)) != NNG_ENOTSUP)) { + nni_mtx_unlock(&nni_tran_lk); return (rv); } for (o = lops->l_options; o && o->o_name != NULL; o++) { -- cgit v1.2.3-70-g09d2