From 849262969c2c1936a45a0ec5c3cd73d9740dc9aa Mon Sep 17 00:00:00 2001 From: bobloy Date: Wed, 5 Dec 2018 14:59:10 -0500 Subject: [PATCH] forgot some await's --- werewolf/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/werewolf/game.py b/werewolf/game.py index 181c198..78bd6f6 100644 --- a/werewolf/game.py +++ b/werewolf/game.py @@ -210,7 +210,7 @@ class Game: print("Pre-cycle") await asyncio.sleep(1) - asyncio.ensure_future(self._cycle()) # Start the loop + await asyncio.ensure_future(self._cycle()) # Start the loop ############START Notify structure############ async def _cycle(self): @@ -276,7 +276,7 @@ class Game: # Need a loop here to wait for trial to end (can_vote?) while self.ongoing_vote: - asyncio.sleep(5) + await asyncio.sleep(5) if check(): return