forked from blizzthewolf/SeaCogs
fix(pterodactyl): use time.sleep instead
This commit is contained in:
parent
b775439967
commit
b6819192b0
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import asyncio
|
||||
import json
|
||||
import time
|
||||
from typing import Mapping, Optional
|
||||
|
||||
import discord
|
||||
|
@ -49,7 +50,7 @@ class Pterodactyl(commands.Cog):
|
|||
self.task.cancel()
|
||||
if self.retry_counter < 5:
|
||||
self.retry_counter += 1
|
||||
asyncio.sleep(5 * self.retry_counter)
|
||||
time.sleep(5 * self.retry_counter)
|
||||
self.task = self.get_task()
|
||||
else:
|
||||
logger.info("Retry limit reached. Stopping task.")
|
||||
|
|
Loading…
Reference in a new issue