]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/rscript/rscript.cpp
Fix old-style casts.
[stg.git] / projects / stargazer / plugins / other / rscript / rscript.cpp
index 8b0e2054a984154961eeb1e31dffbd54ff6fe96e..95699e1068cefd48f79669d1ecbb04a8b0f30cd7 100644 (file)
@@ -265,6 +265,8 @@ if (isRunning)
     logger("Cannot stop thread.");
     m_thread.detach();
     }
     logger("Cannot stop thread.");
     m_thread.detach();
     }
+else
+    m_thread.join();
 
 return 0;
 }
 
 return 0;
 }