This commit is contained in:
Jonas Zeunert
2020-02-13 21:58:15 +01:00
parent 413bd84530
commit 0671c504ae
3 changed files with 7 additions and 3 deletions

View File

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