diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index e604ed7..50c4145 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -172,6 +172,7 @@ class Pterodactyl(commands.Cog): pass except Exception as e: self.logger.error("WebSocket task has failed: %s", e, exc_info=e) + self.task.cancel() self.task = self.get_task() async def cog_load(self):