]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Add instrumentation.
[stg.git] / projects / stargazer / users_impl.cpp
index 2e40f03e90f2bd3d5f2efffdb14d7048d7855ff9..ee25fb2cf90516159b348c7efd7f4fd92d3fd98b 100644 (file)
@@ -534,6 +534,8 @@ if (isRunning)
     //TODO pthread_cancel()
     m_thread.detach();
     }
+else
+    m_thread.join();
 
 printfd(__FILE__, "Before USERS::Run()\n");
 for_each(users.begin(), users.end(), [](auto& user){ user.Run(); });