diff --git a/crash-handler-process/main.cpp b/crash-handler-process/main.cpp index b3870fe..76be12d 100644 --- a/crash-handler-process/main.cpp +++ b/crash-handler-process/main.cpp @@ -211,7 +211,12 @@ void checkProcesses(std::mutex* m) { if (!alive) { index--; - if (!processes.at(index)->getCritical()) { + bool criticalProcessAlive = false; + for (size_t i = 0; i < processes.size(); i++) { + if (processes.at(i)->getCritical()) + criticalProcessAlive = processes.at(i)->getAlive(); + } + if (!processes.at(index)->getCritical() && criticalProcessAlive) { int code = MessageBox( NULL, "An error occurred which has caused Streamlabs OBS to close. Don't worry! If you were streaming or recording, that is still happening in the background."