]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/stgconfig.cpp
Some rscriptd refactoring.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / stgconfig.cpp
index a63478bd714435ba3aa185cebc88baf61b674e0e..0896bb85f434cacb392166e4e55c12db19099ae8 100644 (file)
@@ -127,6 +127,8 @@ int STG_CONFIG::Stop()
 
     if (isRunning)
         m_thread.detach();
+    else
+        m_thread.join();
 
     return 0;
 }