aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <[email protected]>2017-07-21 18:37:22 -0400
committerGitHub <[email protected]>2017-07-21 18:37:22 -0400
commitb532da79064437e14c00b4c5ff2085f077a54bb6 (patch)
treeddd862a2a1d3056faf648ea76e528ff2e5142ee1
parentCall cleanup on AudioSource.__del__. (diff)
downloaddiscord.py-b532da79064437e14c00b4c5ff2085f077a54bb6.tar.xz
discord.py-b532da79064437e14c00b4c5ff2085f077a54bb6.zip
Fix waiting for resume when calling stop() on AudioPlayer
-rw-r--r--discord/player.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/player.py b/discord/player.py
index 6b0416df..f8afdfab 100644
--- a/discord/player.py
+++ b/discord/player.py
@@ -266,6 +266,7 @@ class AudioPlayer(threading.Thread):
if not self._resumed.is_set():
# wait until we aren't
self._resumed.wait()
+ continue
# are we disconnected from voice?
if not self._connected.is_set():
@@ -306,6 +307,7 @@ class AudioPlayer(threading.Thread):
def stop(self):
self._end.set()
+ self._resumed.set()
def pause(self):
self._resumed.clear()