mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
return from closed event when form is already disposed. possible fix for #1794
This commit is contained in:
@@ -798,7 +798,7 @@ namespace mRemoteNG.UI.Window
|
||||
{
|
||||
var protocolBase = sender as ProtocolBase;
|
||||
if (!(protocolBase?.InterfaceControl.Parent is ConnectionTab tabPage)) return;
|
||||
if (tabPage.Disposing) return;
|
||||
if (tabPage.Disposing || tabPage.IsDisposed) return;
|
||||
tabPage.protocolClose = true;
|
||||
Invoke(new Action(() => tabPage.Close()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user