Skip to content

Commit

Permalink
CommonClient: Don't retry connection when connection details are inva…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint authored and EmilyV99 committed Apr 15, 2024
1 parent 49555c1 commit 757f715
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CommonClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. '
Expand Down

0 comments on commit 757f715

Please sign in to comment.