1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fix shutdown

This commit is contained in:
Brian Fiete 2022-06-16 07:39:59 -07:00
parent 5d7a089ff8
commit b564611697

View file

@ -262,6 +262,15 @@ namespace BeefPerf
{ {
base.Stop(); base.Stop();
mListenSocket.Close(); mListenSocket.Close();
Widget.RemoveAndDelete(mWorkspacePanel);
mWorkspacePanel = null;
Widget.RemoveAndDelete(mBoard);
mBoard = null;
Widget.RemoveAndDelete(mProfilePanel);
mProfilePanel = null;
Widget.RemoveAndDelete(mFindPanel);
mFindPanel = null;
} }
void ShowWorkspacePanel() void ShowWorkspacePanel()
@ -512,16 +521,6 @@ namespace BeefPerf
public override void Shutdown() public override void Shutdown()
{ {
base.Shutdown(); base.Shutdown();
Widget.RemoveAndDelete(mWorkspacePanel);
mWorkspacePanel = null;
Widget.RemoveAndDelete(mBoard);
mBoard = null;
Widget.RemoveAndDelete(mProfilePanel);
mProfilePanel = null;
Widget.RemoveAndDelete(mFindPanel);
mFindPanel = null;
mShutdownEvent.Set(true); mShutdownEvent.Set(true);
} }