mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fixing typo (#2434)
This commit is contained in:
parent
fcd1394061
commit
38907e63d9
@ -62,7 +62,7 @@ public static bool Unpack(NetworkReader messageReader, out int msgType)
|
|||||||
public static bool UnpackMessage(NetworkReader messageReader, out int msgType) =>
|
public static bool UnpackMessage(NetworkReader messageReader, out int msgType) =>
|
||||||
Unpack(messageReader, out 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 T : struct, NetworkMessage
|
||||||
where C : NetworkConnection
|
where C : NetworkConnection
|
||||||
=> (conn, reader, channelId) =>
|
=> (conn, reader, channelId) =>
|
||||||
@ -82,7 +82,7 @@ internal static NetworkMessageDelegate WrapHandler<T, C>(Action<C, T> handler, b
|
|||||||
T message = default;
|
T message = default;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (requireAuthenication && !conn.isAuthenticated)
|
if (requireAuthentication && !conn.isAuthenticated)
|
||||||
{
|
{
|
||||||
// message requires authentication, but the connection was not authenticated
|
// 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");
|
logger.LogWarning($"Closing connection: {conn}. Received message {typeof(T)} that required authentication, but the user has not authenticated yet");
|
||||||
|
Loading…
Reference in New Issue
Block a user