Skip to content

Commit

Permalink
Fix deadlock on "Restart" command
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Jul 16, 2024
1 parent 79ff2cf commit e7feb55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
if (!controller)
return;

controller->Restart();
std::thread([=]() { controller->Restart(); }).detach();
},
connected));
debuggerMenu->addAction("Restart", "Launch");
Expand Down

0 comments on commit e7feb55

Please sign in to comment.