diff --git a/Core/ClientSession.cs b/Core/ClientSession.cs index 63366ff..2f68fca 100644 --- a/Core/ClientSession.cs +++ b/Core/ClientSession.cs @@ -119,7 +119,14 @@ public event EventHandler Closed protected virtual void OnClosed() { IsConnected = false; - LocalEndPoint = null; + try + { + LocalEndPoint = null; + } + catch (Exception ex) + { + OnError(ex); + } var handler = m_Closed;