]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/ping/ping.cpp
More std::jthread
[stg.git] / projects / stargazer / plugins / other / ping / ping.cpp
index a8dda2a680ee510474c9e7169d86a9659119feb5..53f7b2f02b8bdf929d540f98358347ac69ffa6e2 100644 (file)
@@ -128,6 +128,8 @@ while (users_iter != usersList.end())
 
 if (isRunning)
     m_thread.detach();
+else
+    m_thread.join();
 
 return 0;
 }