public void Disconnect() { if (EndPoint != null) { try { EndPoint.Close(); } catch (Exception) { // BOP } finally { EndPoint = null; } } OnDisconnected(); }
public void Disconnect() { if (EndPoint != null) { try { EndPoint.Close(); } catch (Exception ex) { Debug.WriteLine(ex.Message); Debug.WriteLine(ex.StackTrace); } finally { EndPoint = null; } } OnDisconnected(); }