From bd0955ac44cd9ed5384ebc6383fb9e809a844301 Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:55:05 +0100 Subject: [PATCH] [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> --- redbot/cogs/streams/streams.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/redbot/cogs/streams/streams.py b/redbot/cogs/streams/streams.py index 8c25216db..105648d92 100644 --- a/redbot/cogs/streams/streams.py +++ b/redbot/cogs/streams/streams.py @@ -845,5 +845,3 @@ class Streams(commands.Cog): def cog_unload(self): if self.task: self.task.cancel() - - __del__ = cog_unload