aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-05-11 21:36:27 -0400
committerRapptz <[email protected]>2016-05-12 06:06:38 -0400
commit1155a0aaa415ea96b83c6efd204aa74992e4c524 (patch)
tree0ca740da58af900e1b7a22a350c4122bb89ff58e
parentAdd a way to change the player volume. (diff)
downloaddiscord.py-1155a0aaa415ea96b83c6efd204aa74992e4c524.tar.xz
discord.py-1155a0aaa415ea96b83c6efd204aa74992e4c524.zip
Make Player threads into daemon threads.
-rw-r--r--discord/voice_client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index 21c96405..20766aec 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -62,6 +62,7 @@ from .errors import ClientException, InvalidArgument
class StreamPlayer(threading.Thread):
def __init__(self, stream, encoder, connected, player, after, **kwargs):
threading.Thread.__init__(self, **kwargs)
+ self.daemon = True
self.buff = stream
self.frame_size = encoder.frame_size
self.player = player