From: Aaron Krebs Date: Fri, 5 Dec 2014 15:18:46 +0000 (+0100) Subject: Call stop in close, as stated in documentation. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=af427dfac6b084eeb59330ecc9491a0e30c4b36d;p=meshlink Call stop in close, as stated in documentation. --- diff --git a/src/meshlink.c b/src/meshlink.c index cbe88a3e..51590200 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -957,6 +957,9 @@ void meshlink_close(meshlink_handle_t *mesh) { return; } + // stop can be called even if mesh has not been started + meshlink_stop(mesh); + // lock is not released after this pthread_mutex_lock(&(mesh->mesh_mutex));