mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServer.OnDisconnected: remove "Player not destroyed when connection disconnected." warning. This warning would be shown if a NetworkManager's OnServerDisconnect function wouldn't remove the player immediately, which is completely normal in most online games where the server delays a disconnect if the player was recently in combat - which would then show this warning every single time. OnServerDisconnect removes the player controller anyway, so there is no need for this warning at all.
This commit is contained in:
parent
c58cf884d4
commit
9c8211e573
@ -399,13 +399,6 @@ static void OnDisconnected(int connectionId)
|
||||
static void OnDisconnected(NetworkConnection conn)
|
||||
{
|
||||
conn.InvokeHandler(new DisconnectMessage());
|
||||
|
||||
if (conn.playerController != null)
|
||||
{
|
||||
//NOTE: should there be default behaviour here to destroy the associated player?
|
||||
Debug.LogWarning("Player not destroyed when connection disconnected.");
|
||||
}
|
||||
|
||||
if (LogFilter.Debug) Debug.Log("Server lost client:" + conn.connectionId);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user