From 765c87e80c99b11aea3f7296aae0649c88a4156f Mon Sep 17 00:00:00 2001 From: rodolphito Date: Sun, 7 Apr 2019 09:41:01 -0700 Subject: [PATCH] Promote the Warning to an Error, because thats how it was before. Move it above the disconnect, in case Disconnect throws. (#756) --- Assets/Mirror/Runtime/NetworkConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkConnection.cs b/Assets/Mirror/Runtime/NetworkConnection.cs index 61050c129..09142dcf7 100644 --- a/Assets/Mirror/Runtime/NetworkConnection.cs +++ b/Assets/Mirror/Runtime/NetworkConnection.cs @@ -257,8 +257,8 @@ public virtual void TransportReceive(byte[] buffer) } catch (Exception exception) { + Debug.LogError("Closed connection: " + connectionId + ". This can happen if the other side accidentally (or an attacker intentionally) sent invalid data. Reason: " + exception); Disconnect(); - Debug.LogWarning("Closed connection: " + connectionId + ". This can happen if the other side accidentally (or an attacker intentionally) sent invalid data. Reason: " + exception); } }