From 12321c48fa82c4c6fdfa7a9bf7f407eeee0d263b Mon Sep 17 00:00:00 2001 From: Souryo Date: Wed, 22 Nov 2017 21:29:21 -0500 Subject: [PATCH] Debugger: Fixed deadlock when using "Power Off" while debugger is opened --- GUI.NET/Forms/frmMain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI.NET/Forms/frmMain.cs b/GUI.NET/Forms/frmMain.cs index cc58ccee..3d398599 100644 --- a/GUI.NET/Forms/frmMain.cs +++ b/GUI.NET/Forms/frmMain.cs @@ -479,7 +479,7 @@ namespace Mesen.GUI.Forms break; case InteropEmu.ConsoleNotificationType.EmulationStopped: - this.Invoke((Action)(() => { + this.BeginInvoke((Action)(() => { DebugWindowManager.CloseAll(); })); break;