fix(pterodactyl): restart the websocket task if it fails

This commit is contained in:
Seaswimmer 2024-02-29 21:38:54 -05:00
parent 0aa17e8807
commit cccc941e26
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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 = self.get_task()
async def cog_load(self):
self.task = self.get_task()