bugfix: improve logging of the shutdown event.

This commit is contained in:
alexiscatnip
2022-08-06 02:43:06 +08:00
committed by alexiscatnip
parent 2daf3aa554
commit e32e5d9434
@@ -816,7 +816,11 @@ namespace OpenMetaverse
/// <param name="message">Shutdown message</param>
public void Shutdown(DisconnectType type, string message)
{
Logger.Log("NetworkManager shutdown initiated", Helpers.LogLevel.Info, Client);
Logger.Log(
"NetworkManager shutdown initiated. Reason: "
+ message,
Helpers.LogLevel.Info,
Client);
// Send a CloseCircuit packet to simulators if we are initiating the disconnect
bool sendCloseCircuit = (type == DisconnectType.ClientInitiated || type == DisconnectType.NetworkTimeout);