From 49b8d045d498574b51913be05ea1e9a41609b6e1 Mon Sep 17 00:00:00 2001 From: Niklas Hofmann Date: Sat, 9 Aug 2014 19:34:12 +0200 Subject: [PATCH] fixed missing unlock --- src/meshlink.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.39.5