From ae611cf82c4336fa5c5f080c69c15380a7b1036e Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 13 Jun 2018 11:24:41 +0200 Subject: [PATCH] NetworkServer.DestroyPlayersForConnection: removed unnecessary 'empty player list given to NetworkServer' warning that might happen while players are still in a lobby without entering the game world yet --- Unity-Technologies-networking/Runtime/NetworkServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unity-Technologies-networking/Runtime/NetworkServer.cs b/Unity-Technologies-networking/Runtime/NetworkServer.cs index 3010d6864..69b7f32f0 100644 --- a/Unity-Technologies-networking/Runtime/NetworkServer.cs +++ b/Unity-Technologies-networking/Runtime/NetworkServer.cs @@ -1375,7 +1375,7 @@ static public void DestroyPlayersForConnection(NetworkConnection conn) { if (conn.playerControllers.Count == 0) { - if (LogFilter.logWarn) { Debug.LogWarning("Empty player list given to NetworkServer.Destroy(), nothing to do."); } + // list is empty if players are still in a lobby etc., no need to show a warning return; }