fix(pterodactyl): restart the websocket task if it fails
This commit is contained in:
parent
0aa17e8807
commit
cccc941e26
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue