]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/smux.cpp
More std::jthread
[stg.git] / projects / stargazer / plugins / other / smux / smux.cpp
index 77df934800f77bc93a8b53cff6ca280bcb9f938a..e0ddfffcb56e251fc84b0454fda065b6a9797930 100644 (file)
@@ -214,6 +214,8 @@ if (!stopped)
 
 if (!stopped)
     m_thread.detach();
+else
+    m_thread.join();
 
 ResetNotifiers();