This commit is contained in:
Jonas Zeunert
2020-02-14 00:48:38 +01:00
parent 49ecf0f244
commit 22cb3fa229
3 changed files with 3 additions and 6 deletions

View File

@@ -15,8 +15,7 @@ class Game:
print('Received SIGINT. Stopping Game :-)')
self.is_running.release()
@asyncio.coroutine
def run(self):
async def run(self):
self.is_running.acquire()
asyncio.run(self.input_handler.handleInputs())