]> git.meshlink.io Git - meshlink/commitdiff
Fix meshlink_stop() calling pthread_mutex_lock() twice.
authorGuus Sliepen <guus@meshlink.io>
Sun, 25 Jun 2017 16:29:17 +0000 (18:29 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 25 Jun 2017 16:29:17 +0000 (18:29 +0200)
src/meshlink.c

index f60ffe548ae12c599e672106ae5a94932a33b39d..8b0c0621a9bd2a84d2abaf3c62a77f165b9a4ebd 100644 (file)
@@ -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);