private void HandleSocketException(Exception e) { var se = e as SocketException; if (se != null) { Logger.Warning(string.Format("Got socket error: {0}", se.SocketErrorCode)); } else { Logger.Warning(e.Message, e); } _clientConnectionManager.DestroyConnection(this); }
private void HandleSocketException(Exception e) { if (!Live) { // connection is already closed return; } var se = e as SocketException; if (se != null) { Logger.Warning(string.Format("Got socket error: {0}", se.SocketErrorCode)); } else { Logger.Warning("Got exception in connection " + this + ":", e); } _clientConnectionManager.DestroyConnection(this, e); }