From: Guus Sliepen Date: Sun, 25 Jun 2017 16:29:17 +0000 (+0200) Subject: Fix meshlink_stop() calling pthread_mutex_lock() twice. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=adbe9a0c31825a0285e2a0e06558e1a5d8694005;p=meshlink Fix meshlink_stop() calling pthread_mutex_lock() twice. --- 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);