This commit is contained in:
Jonas Zeunert
2020-03-11 22:06:30 +01:00
parent 6e7e204083
commit 72bfc73c0c

View File

@@ -16,8 +16,8 @@ class Game:
self.is_running.release()
async def run(self):
self.is_running.acquire()
asyncio.run(self.input_handler.handleInputs())
await self.is_running.acquire()
await asyncio.run(self.input_handler.handleInputs())
await self.is_running.wait()
pass