Update ProtocolBase.cs

check if object is disposed before working with it
This commit is contained in:
BlueBlock
2023-03-17 13:07:58 -04:00
parent b01b8e4bc8
commit 6b6ceda497

View File

@@ -203,6 +203,10 @@ namespace mRemoteNG.Connection.Protocol
private void DisposeInterface()
{
if (_interfaceControl.IsDisposed)
{
return;
}
if (_interfaceControl.InvokeRequired)
{
var s = new DisposeInterfaceCB(DisposeInterface);