mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Update ProtocolBase.cs
check if object is disposed before working with it
This commit is contained in:
@@ -203,6 +203,10 @@ namespace mRemoteNG.Connection.Protocol
|
||||
|
||||
private void DisposeInterface()
|
||||
{
|
||||
if (_interfaceControl.IsDisposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (_interfaceControl.InvokeRequired)
|
||||
{
|
||||
var s = new DisposeInterfaceCB(DisposeInterface);
|
||||
|
||||
Reference in New Issue
Block a user