From 6abc92db11e5da367e82bd9e77aca863b3aef759 Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 22 Jun 2016 22:18:58 -0400 Subject: [PATCH] Stop audio zombies (#317) Version --- cogs/audio.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cogs/audio.py b/cogs/audio.py index fcce2d795..13397ce7e 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -16,7 +16,7 @@ import time import inspect __author__ = "tekulvw" -__version__ = "0.0.1" +__version__ = "0.1.1" log = logging.getLogger("red.audio") @@ -560,14 +560,6 @@ class Audio: log.exception(e) raise ConnectTimeout("We timed out connecting to a voice channel") - def _kill_player(self, server): - try: - self.voice_client(server).audio_player.process.kill() - except AttributeError: - pass - except ProcessLookupError: - pass - def _list_local_playlists(self): ret = [] for thing in os.listdir(self.local_playlist_path): @@ -903,7 +895,6 @@ class Audio: if hasattr(voice_client, 'audio_player'): voice_client.audio_player.stop() - self._kill_player(server) del voice_client.audio_player def _valid_playlist_name(self, name):