X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink.c;h=d3cf36ad5e5801fdaae0d8591520841cea230385;hp=922466944cbc9391802502abedf44b05f5f02e6d;hb=61701fc35b1708fba93e7559e34339937bbc26ff;hpb=1278c5d654a4f555a1be1ce5351017201fe34d0b diff --git a/src/meshlink.c b/src/meshlink.c index 92246694..d3cf36ad 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1461,6 +1461,7 @@ meshlink_handle_t *meshlink_open_ex(const meshlink_open_params_t *params) { assert(pthread_mutexattr_init(&attr) == 0); assert(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) == 0); assert(pthread_mutex_init(&mesh->mutex, &attr) == 0); + assert(pthread_cond_init(&mesh->cond, NULL) == 0); assert(pthread_mutex_init(&mesh->discovery_mutex, NULL) == 0); assert(pthread_cond_init(&mesh->discovery_cond, NULL) == 0);