diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 2fd803e63..35cdc8494 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -4676,6 +4676,12 @@ void OBSBasic::closeEvent(QCloseEvent *event) } } + if (remux && !remux->close()) { + event->ignore(); + restart = false; + return; + } + QWidget::closeEvent(event); if (!event->isAccepted()) return;