From e5d999c7556210c8d65c6f5d5c97dc55745c9541 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 19 May 2022 06:02:36 +0200 Subject: [PATCH] SC2: prevent freeze when X-ing out the window --- StarcraftClient.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/StarcraftClient.py b/StarcraftClient.py index c86ab044..e8f09bb0 100644 --- a/StarcraftClient.py +++ b/StarcraftClient.py @@ -514,8 +514,6 @@ def mission_reqs_completed(location_to_check, missions_complete, locations_done, if __name__ == '__main__': colorama.init() - loop = asyncio.get_event_loop() - loop.run_until_complete(main()) - loop.close() + asyncio.run(main()) colorama.deinit()