mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[Audio] More robust startup and unload (#2118)
* More robust cleanup for audio and streams Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Remove copied code from streams Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
@@ -666,3 +666,5 @@ class Streams:
|
||||
def __unload(self):
|
||||
if self.task:
|
||||
self.task.cancel()
|
||||
|
||||
__del__ = __unload
|
||||
|
||||
Reference in New Issue
Block a user