mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
formatting
This commit is contained in:
parent
ef5fc77728
commit
13db82b347
@ -678,14 +678,14 @@ static bool IsConnectionAllowed(int connectionId, string address)
|
|||||||
// hashing which can be < 0 as well, so we need to allow < 0!
|
// hashing which can be < 0 as well, so we need to allow < 0!
|
||||||
if (connectionId == 0)
|
if (connectionId == 0)
|
||||||
{
|
{
|
||||||
Debug.LogError($"Server.HandleConnect: invalid connectionId: {connectionId} . Needs to be != 0, because 0 is reserved for local player.");
|
Debug.LogError($"Server.HandleConnect: invalid connectionId={connectionId}. Needs to be != 0, because 0 is reserved for local player.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// connectionId not in use yet?
|
// connectionId not in use yet?
|
||||||
if (connections.ContainsKey(connectionId))
|
if (connections.ContainsKey(connectionId))
|
||||||
{
|
{
|
||||||
Debug.LogError($"Server connectionId {connectionId}already in use...client with address={address} will be kicked");
|
Debug.LogError($"Server connectionId={connectionId} already in use. Client with address={address} will be kicked");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -696,7 +696,7 @@ static bool IsConnectionAllowed(int connectionId, string address)
|
|||||||
// Transport can't do that)
|
// Transport can't do that)
|
||||||
if (connections.Count >= maxConnections)
|
if (connections.Count >= maxConnections)
|
||||||
{
|
{
|
||||||
Debug.LogError($"Server full, client {connectionId} with address={address} will be kicked");
|
Debug.LogError($"Server full, client connectionId={connectionId} with address={address} will be kicked");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user