From: Saverio Proto Date: Thu, 7 Aug 2014 13:04:18 +0000 (+0200) Subject: After killing meshlink thread update the bool status threadstarted X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=7df6ece3865a0279b7728526eb8fefd4458fc2ea;p=meshlink After killing meshlink thread update the bool status threadstarted --- diff --git a/src/meshlink.c b/src/meshlink.c index 08aee7a9..99e1704b 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -882,6 +882,7 @@ void meshlink_stop(meshlink_handle_t *mesh) { // Wait for the main thread to finish pthread_join(mesh->thread, NULL); + mesh->threadstarted = false; } void meshlink_close(meshlink_handle_t *mesh) {