diff options
Diffstat (limited to 'apworld/context.py')
-rw-r--r-- | apworld/context.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apworld/context.py b/apworld/context.py index 2a2149f..41e833e 100644 --- a/apworld/context.py +++ b/apworld/context.py | |||
@@ -267,6 +267,8 @@ async def process_game_cmd(ctx: Lingo2GameContext, args: dict): | |||
267 | async_start(ctx.client.disconnect(), name="client disconnect") | 267 | async_start(ctx.client.disconnect(), name="client disconnect") |
268 | elif cmd in ["Sync", "LocationChecks", "Say", "StatusUpdate", "LocationScouts"]: | 268 | elif cmd in ["Sync", "LocationChecks", "Say", "StatusUpdate", "LocationScouts"]: |
269 | async_start(ctx.client.send_msgs([args]), name="client forward") | 269 | async_start(ctx.client.send_msgs([args]), name="client forward") |
270 | elif cmd == "Quit": | ||
271 | ctx.client.exit_event.set() | ||
270 | 272 | ||
271 | 273 | ||
272 | async def run_game(): | 274 | async def run_game(): |
@@ -328,6 +330,7 @@ def client_main(*launch_args: str) -> None: | |||
328 | logger.exception(e) | 330 | logger.exception(e) |
329 | 331 | ||
330 | await client_ctx.exit_event.wait() | 332 | await client_ctx.exit_event.wait() |
333 | client_ctx.ui.stop() | ||
331 | await client_ctx.shutdown() | 334 | await client_ctx.shutdown() |
332 | 335 | ||
333 | Utils.init_logging("Lingo2Client", exception_logger="Client") | 336 | Utils.init_logging("Lingo2Client", exception_logger="Client") |