From 7df6ece3865a0279b7728526eb8fefd4458fc2ea Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Thu, 7 Aug 2014 15:04:18 +0200 Subject: [PATCH] After killing meshlink thread update the bool status threadstarted --- src/meshlink.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.5