[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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