mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
[Streams] Remove the __del__ (#4512)
* [Streams] Remove the `__del__` * Add a teardown function to call Streams.cog_unload() * Apparently I forgot cog_unload is called automatically (Thanks @rapptz lol) Co-authored-by: palmtree5 <3577255+palmtree5@users.noreply.github.com>
This commit is contained in:
parent
0d650f6765
commit
bd0955ac44
@ -845,5 +845,3 @@ class Streams(commands.Cog):
|
|||||||
def cog_unload(self):
|
def cog_unload(self):
|
||||||
if self.task:
|
if self.task:
|
||||||
self.task.cancel()
|
self.task.cancel()
|
||||||
|
|
||||||
__del__ = cog_unload
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user