2
0
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:
Kyle Herock 2017-04-19 02:06:04 -04:00
parent d454234a91
commit 0e4f9545e7

View File

@ -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);
}
}