From 552c1e246b985014d5d2bf9c1e026a2fbebc5e83 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Wed, 11 Mar 2020 22:09:25 +0100 Subject: [PATCH] wtf --- Game.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Game.py b/Game.py index 87d0a64..b47a5a2 100644 --- a/Game.py +++ b/Game.py @@ -17,7 +17,10 @@ class Game: async def run(self): await self.is_running.acquire() - await asyncio.run(self.input_handler.handleInputs()) + input_loop = asyncio.new_event_loop() + await input_loop.run_until_complete(self.input_handler.handleInputs()) + input_loop.close() + await self.is_running.wait() pass