protected virtual void CloseConnection() { if (LeClient != null) { LeClient.Close(); } }
protected virtual void CloseConnection() { try { if (LeClient != null) { LogInternal(InternalLogLevel.Info, "Close client"); LeClient.Close(); } } catch (Exception ex) { if (ex.IsFatal()) { throw; } LogInternal(InternalLogLevel.Error, "Close client failed: " + ex.Message); } }