Debugger: Fixed potential deadlock when closing debugger
This commit is contained in:
parent
a412b453cf
commit
8c3402c819
1 changed files with 5 additions and 4 deletions
|
@ -533,6 +533,11 @@ namespace Mesen.GUI.Debugger
|
|||
|
||||
protected override void OnFormClosed(FormClosedEventArgs e)
|
||||
{
|
||||
tmrCdlRatios.Stop();
|
||||
foreach(Form frm in this._childForms.ToArray()) {
|
||||
frm.Close();
|
||||
}
|
||||
|
||||
LabelManager.OnLabelUpdated -= LabelManager_OnLabelUpdated;
|
||||
BreakpointManager.BreakpointsChanged -= BreakpointManager_BreakpointsChanged;
|
||||
ctrlConsoleStatus.OnStateChanged -= ctrlConsoleStatus_OnStateChanged;
|
||||
|
@ -553,10 +558,6 @@ namespace Mesen.GUI.Debugger
|
|||
|
||||
SaveWorkspace();
|
||||
|
||||
foreach(Form frm in this._childForms.ToArray()) {
|
||||
frm.Close();
|
||||
}
|
||||
|
||||
base.OnFormClosed(e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue