From adbe9a0c31825a0285e2a0e06558e1a5d8694005 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 25 Jun 2017 18:29:17 +0200 Subject: [PATCH] Fix meshlink_stop() calling pthread_mutex_lock() twice. --- src/meshlink.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/meshlink.c b/src/meshlink.c index f60ffe54..8b0c0621 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1015,9 +1015,6 @@ void meshlink_stop(meshlink_handle_t *mesh) { // Stop discovery discovery_stop(mesh); - pthread_mutex_lock(&(mesh->mesh_mutex)); - logger(mesh, MESHLINK_DEBUG, "meshlink_stop called\n"); - // Shut down the main thread event_loop_stop(&mesh->loop); -- 2.39.5