mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Promote the Warning to an Error, because thats how it was before. Move it above the disconnect, in case Disconnect throws. (#756)
This commit is contained in:
parent
ecccb88be5
commit
765c87e80c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user