]> git.meshlink.io Git - meshlink/commitdiff
After killing meshlink thread update the bool status threadstarted
authorSaverio Proto <zioproto@gmail.com>
Thu, 7 Aug 2014 13:04:18 +0000 (15:04 +0200)
committerSaverio Proto <zioproto@gmail.com>
Thu, 7 Aug 2014 14:16:25 +0000 (16:16 +0200)
src/meshlink.c

index 08aee7a9df3cdc8bdfa75840a5e179720c53c782..99e1704b89c929e18a97fddf4f9abcd95f78a102 100644 (file)
@@ -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) {