mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Fix waiting for resume when calling stop() on AudioPlayer
This commit is contained in:
parent
5d75c44651
commit
b532da7906
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user