From 76acef0f209641fbbcc87c1fe029420da95db363 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Sat, 2 Dec 2023 14:47:24 +0100 Subject: [PATCH] Don't use jthread because we can't --- src/RunGui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RunGui.cpp b/src/RunGui.cpp index 19ac9413c..9932055a9 100644 --- a/src/RunGui.cpp +++ b/src/RunGui.cpp @@ -245,7 +245,7 @@ void runGui(QApplication &a, Paths &paths, Settings &settings) restartOnSignal = value; }); - auto thread = std::jthread([dir = paths.miscDirectory] { + auto thread = std::thread([dir = paths.miscDirectory] { #ifdef Q_OS_WIN32 { auto path = combinePath(dir, "Update.exe"); @@ -311,6 +311,7 @@ void runGui(QApplication &a, Paths &paths, Settings &settings) pajlada::Settings::SettingManager::gSave(); } + thread.join(); chatterino::NetworkManager::deinit(); #ifdef USEWINSDK