easier
This commit is contained in:
6
Game.py
6
Game.py
@@ -18,9 +18,7 @@ class Game:
|
||||
async def run(self):
|
||||
await self.is_running.acquire()
|
||||
|
||||
input_loop = asyncio.new_event_loop()
|
||||
await input_loop.run_until_complete(self.input_handler.handleInputs())
|
||||
input_loop.close()
|
||||
|
||||
await self.input_handler.handleInputs()
|
||||
|
||||
await self.is_running.wait()
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user