This commit is contained in:
vis2k 2021-05-11 11:41:24 +08:00
parent 33d3bbcb06
commit ea38d8f5e1

View File

@ -287,8 +287,6 @@ static void OnTransportDisconnected()
} }
NetworkServer.RemoveLocalConnection(); NetworkServer.RemoveLocalConnection();
} }
// remote connection
else connection.Disconnect();
// call OnDisconnected event. NetworkManager hooks into it. // call OnDisconnected event. NetworkManager hooks into it.
OnDisconnectedEvent?.Invoke(); OnDisconnectedEvent?.Invoke();