diff --git a/mRemoteNG/UI/Window/ConnectionWindow.cs b/mRemoteNG/UI/Window/ConnectionWindow.cs index 4c1c1691..506e88e3 100644 --- a/mRemoteNG/UI/Window/ConnectionWindow.cs +++ b/mRemoteNG/UI/Window/ConnectionWindow.cs @@ -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())); }