/// <summary> /// Stops the server and all handlers /// </summary> public void Stop() { var success = InternalStop(); if (!success) { Logger.Info("Failed to stop"); } _handlerManager.TearDown(); }
/// <summary> /// Stops the server and all handlers /// </summary> public void Stop() { try { var success = InternalStop(); if (!success) { Logger.Error("Failed to stop"); } _handlerManager.TearDown(); _clientManager.Clear(); } catch (Exception exception) { Logger.Error(exception, "Failed to stop"); } }