This commit is contained in:
vis2k 2021-05-11 11:41:24 +08:00
parent 4b8290447f
commit 73df46e2b0

View File

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