1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

added await

This commit is contained in:
Steffo 2017-02-09 15:38:30 +01:00
parent 11e45e0c45
commit 1199ec7a22

View file

@ -85,7 +85,7 @@ async def overwatch_status_change(timeout):
db[player]["overwatch"]["rank"] = rank
save_db()
finally:
asyncio.sleep(1)
await asyncio.sleep(1)
print("[Overwatch] Check completed successfully.")
# Wait for the timeout
await asyncio.sleep(timeout)