wtf
This commit is contained in:
5
Game.py
5
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
|
||||
|
||||
Reference in New Issue
Block a user