forgot some await's

This commit is contained in:
bobloy 2018-12-05 14:59:10 -05:00
parent 53d817756a
commit 849262969c

View File

@ -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