Skip to content

Commit

Permalink
Don't use jthread because we can't
Browse files Browse the repository at this point in the history
  • Loading branch information
Mm2PL committed Dec 2, 2023
1 parent 2dcd6be commit 76acef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RunGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -311,6 +311,7 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
pajlada::Settings::SettingManager::gSave();
}

thread.join();
chatterino::NetworkManager::deinit();

#ifdef USEWINSDK
Expand Down

0 comments on commit 76acef0

Please sign in to comment.