From b6819192b0dfbe34203cf8d2148ed95b70a23c30 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Mar 2024 14:56:44 -0500 Subject: [PATCH] fix(pterodactyl): use time.sleep instead --- pterodactyl/pterodactyl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index ce5000e..cead70a 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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.")