diff --git a/TestProtocol/CustomConnection.cs b/TestProtocol/CustomConnection.cs index 9beda66..ae19ff7 100644 --- a/TestProtocol/CustomConnection.cs +++ b/TestProtocol/CustomConnection.cs @@ -93,10 +93,7 @@ namespace TestProtocol try { - if( this.Disconnected != null ) - { - this.Disconnected(); - } + this.Disconnected?.Invoke(); } catch { }