mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
Merge pull request #2862 from mRemoteNG/copilot/fix-unhandled-exception-panel-closure
Fix unhandled exception when closing panel with active connections
This commit is contained in:
@@ -776,6 +776,7 @@ namespace mRemoteNG.UI.Window
|
||||
ProtocolBase protocolBase = sender as ProtocolBase;
|
||||
if (!(protocolBase?.InterfaceControl.Parent is ConnectionTab tabPage)) return;
|
||||
if (tabPage.Disposing || tabPage.IsDisposed) return;
|
||||
if (IsDisposed || Disposing) return;
|
||||
tabPage.protocolClose = true;
|
||||
Invoke(new Action(() => tabPage.Close()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user