fixing typo (#2434)

This commit is contained in:
James Frowen 2020-11-15 20:40:45 +00:00 committed by GitHub
parent fcd1394061
commit 38907e63d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ public static bool Unpack(NetworkReader messageReader, out int msgType)
public static bool UnpackMessage(NetworkReader messageReader, out int msgType) =>
Unpack(messageReader, out msgType);
internal static NetworkMessageDelegate WrapHandler<T, C>(Action<C, T> handler, bool requireAuthenication)
internal static NetworkMessageDelegate WrapHandler<T, C>(Action<C, T> handler, bool requireAuthentication)
where T : struct, NetworkMessage
where C : NetworkConnection
=> (conn, reader, channelId) =>
@ -82,7 +82,7 @@ internal static NetworkMessageDelegate WrapHandler<T, C>(Action<C, T> handler, b
T message = default;
try
{
if (requireAuthenication && !conn.isAuthenticated)
if (requireAuthentication && !conn.isAuthenticated)
{
// message requires authentication, but the connection was not authenticated
logger.LogWarning($"Closing connection: {conn}. Received message {typeof(T)} that required authentication, but the user has not authenticated yet");