mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
Fix crash when CloseWhenDone is enabled
The renderer thread is automatically closed in the SteamTargetRenderer destructor, so just stop the loop and let the program die
This commit is contained in:
parent
d454234a91
commit
0e4f9545e7
@ -488,16 +488,10 @@ void SteamTargetRenderer::checkSharedMem()
|
||||
sharedMemInstance.unlock();
|
||||
sharedMemInstance.detach();
|
||||
|
||||
int close_index = stringList.indexOf(LaunchedProcessFinished)+1;
|
||||
int close_index = stringList.indexOf(LaunchedProcessFinished) + 1;
|
||||
|
||||
if (close_index > 0 && stringList.at(close_index).toInt() == 1)
|
||||
{
|
||||
bRunLoop = false;
|
||||
renderThread.join();
|
||||
if (controllerThread.isRunning())
|
||||
controllerThread.stop();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user