From e7feb5505dc85b80ba7f00cdc1d1cad897657f9c Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 16 Jul 2024 13:25:53 -0400 Subject: [PATCH] Fix deadlock on "Restart" command --- ui/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.cpp b/ui/ui.cpp index a86dbab..ce74b47 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -540,7 +540,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context) if (!controller) return; - controller->Restart(); + std::thread([=]() { controller->Restart(); }).detach(); }, connected)); debuggerMenu->addAction("Restart", "Launch");