forked from cswimr/SeaCogs
fix(pterodactyl): cancel the task upon error
This commit is contained in:
parent
de5d0194c8
commit
9e15730af9
1 changed files with 1 additions and 0 deletions
|
@ -172,6 +172,7 @@ class Pterodactyl(commands.Cog):
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error("WebSocket task has failed: %s", e, exc_info=e)
|
self.logger.error("WebSocket task has failed: %s", e, exc_info=e)
|
||||||
|
self.task.cancel()
|
||||||
self.task = self.get_task()
|
self.task = self.get_task()
|
||||||
|
|
||||||
async def cog_load(self):
|
async def cog_load(self):
|
||||||
|
|
Loading…
Reference in a new issue