Clean up shutdown handling

This commit is contained in:
WarmUpTill 2023-04-19 20:40:23 +02:00 committed by WarmUpTill
parent 81ac45a1d4
commit 482a99cf15

View File

@ -603,9 +603,11 @@ void setStreamStopping()
void handleExit()
{
if (!switcher) {
return;
}
switcher->obsIsShuttingDown = true;
if (switcher && switcher->obsIsShuttingDown &&
switcher->shutdownConditionCount) {
if (switcher->shutdownConditionCount) {
switcher->Stop();
switcher->checkMacros();
switcher->runMacros();