From f7da8335728a2332068b3dfb88e12be7074932ef Mon Sep 17 00:00:00 2001 From: qwint Date: Fri, 15 Mar 2024 03:27:42 -0500 Subject: [PATCH] CommonClient: Don't retry connection when connection details are invalid (#2831) --- CommonClient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CommonClient.py b/CommonClient.py index a7b7828a1d08..b6f8e43b181b 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -758,8 +758,10 @@ async def process_server_cmd(ctx: CommonContext, args: dict): elif cmd == 'ConnectionRefused': errors = args["errors"] if 'InvalidSlot' in errors: + ctx.disconnected_intentionally = True ctx.event_invalid_slot() elif 'InvalidGame' in errors: + ctx.disconnected_intentionally = True ctx.event_invalid_game() elif 'IncompatibleVersion' in errors: raise Exception('Server reported your client version as incompatible. '