This commit is contained in:
vis2k 2019-09-21 21:26:51 +02:00
parent 135caba5be
commit 3a803c1c39

View File

@ -123,7 +123,7 @@ public static bool UnpackMessage(NetworkReader messageReader, out int msgType)
{
if (requireAuthenication && !networkMessage.conn.isAuthenticated)
{
// message requires authentication, but the connection was no authnticated
// message requires authentication, but the connection was not authenticated
Debug.LogWarning($"Closing connection: {networkMessage.conn.connectionId}. Received message {typeof(T)} that required authentication, but the user has not authenticated yet");
networkMessage.conn.Disconnect();
return;