This commit is contained in:
Jonas Zeunert
2020-03-11 22:09:25 +01:00
parent 72bfc73c0c
commit 552c1e246b

View File

@@ -17,7 +17,10 @@ class Game:
async def run(self): async def run(self):
await self.is_running.acquire() 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() await self.is_running.wait()
pass pass