Browse Source

Make Player threads into daemon threads.

pull/210/head
Rapptz 9 years ago
parent
commit
1155a0aaa4
  1. 1
      discord/voice_client.py

1
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

Loading…
Cancel
Save