From: Niklas Hofmann Date: Sat, 9 Aug 2014 17:34:12 +0000 (+0200) Subject: fixed missing unlock X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=49b8d045d498574b51913be05ea1e9a41609b6e1;p=meshlink fixed missing unlock --- diff --git a/src/meshlink.c b/src/meshlink.c index d028d428..acb4b0fb 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1042,8 +1042,10 @@ void meshlink_send_from_queue(event_loop_t* el,meshlink_handle_t *mesh) { outpacketqueue_t* p = meshlink_queue_pop(&mesh->outpacketqueue); if(!p) + { pthread_mutex_unlock(&(mesh->mesh_mutex)); return; + } if (sizeof(meshlink_packethdr_t) + p->len > MAXSIZE) { pthread_mutex_unlock(&(mesh->mesh_mutex));