From a584e14f47c92b9a409085f4bc45542d956b4fe8 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 18 Jun 2020 14:48:28 +0200 Subject: [PATCH] no longer need webhost keep-alive with auto-shutdown --- WebHost/customserver.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/WebHost/customserver.py b/WebHost/customserver.py index e52bca0e..6af7925d 100644 --- a/WebHost/customserver.py +++ b/WebHost/customserver.py @@ -31,8 +31,6 @@ def run_server_process(multidata: str): logging.info(f'Hosting game at {get_public_ipv4()}:{socketname[1]}') ctx.auto_shutdown = 6 * 60 ctx.shutdown_task = asyncio.create_task(auto_shutdown(ctx, [])) - while ctx.running: - await asyncio.sleep(1) await ctx.shutdown_task logging.info("Shutting down")