From 044fac9043a5bb0a582efcedb2163ea7af965e71 Mon Sep 17 00:00:00 2001 From: palana Date: Tue, 16 Sep 2014 16:22:35 +0200 Subject: [PATCH] Ignore stream button updates while shutting down --- Source/OBS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/OBS.cpp b/Source/OBS.cpp index 4877638be..4b2f07b76 100644 --- a/Source/OBS.cpp +++ b/Source/OBS.cpp @@ -1364,6 +1364,7 @@ void OBS::GetSceneCollection(StringList &sceneCollectionList) void OBS::RefreshStreamButtons(bool disable) { + if (bShuttingDown) return; int networkMode = AppConfig->GetInt(TEXT("Publish"), TEXT("Mode"), 2); bRecordingOnly = (networkMode == 1); bool canStream = networkMode == 0 && !bTestStream; @@ -1380,6 +1381,7 @@ void OBS::RefreshStreamButtons(bool disable) void OBS::ConfigureStreamButtons() { + if (bShuttingDown) return; RefreshStreamButtons(); SetWindowText(GetDlgItem(hwndMain, ID_STARTSTOP), bStreaming ? Str("MainWindow.StopStream") : Str("MainWindow.StartStream")); SetWindowText(GetDlgItem(hwndMain, ID_TOGGLERECORDING), bRecording ? Str("MainWindow.StopRecording") : Str("MainWindow.StartRecording"));