Don't use jthread because we can't

This commit is contained in:
Mm2PL 2023-12-02 14:47:24 +01:00
parent 2dcd6be804
commit 76acef0f20
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -245,7 +245,7 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
restartOnSignal = value; restartOnSignal = value;
}); });
auto thread = std::jthread([dir = paths.miscDirectory] { auto thread = std::thread([dir = paths.miscDirectory] {
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
{ {
auto path = combinePath(dir, "Update.exe"); auto path = combinePath(dir, "Update.exe");
@ -311,6 +311,7 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
pajlada::Settings::SettingManager::gSave(); pajlada::Settings::SettingManager::gSave();
} }
thread.join();
chatterino::NetworkManager::deinit(); chatterino::NetworkManager::deinit();
#ifdef USEWINSDK #ifdef USEWINSDK