[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:
PredaaA
2020-10-28 11:55:05 +01:00
committed by GitHub
parent 0d650f6765
commit bd0955ac44

View File

@@ -845,5 +845,3 @@ class Streams(commands.Cog):
def cog_unload(self):
if self.task:
self.task.cancel()
__del__ = cog_unload