WebHost: Guard each Room via file-lock

This commit is contained in:
Fabian Dill
2021-06-29 03:11:48 +02:00
parent 95e0f551e8
commit 4d4af9d74e
3 changed files with 11 additions and 5 deletions

View File

@@ -1034,7 +1034,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
if ctx.compatibility == 0 and args['version'] != version_tuple:
errors.add('IncompatibleVersion')
if errors:
logging.info(f"A client connection was refused due to: {errors}")
logging.info(f"A client connection was refused due to: {errors}, the sent connect information was {args}.")
await ctx.send_msgs(client, [{"cmd": "ConnectionRefused", "errors": list(errors)}])
else:
ctx.client_ids[client.team, client.slot] = args["uuid"]