Browse Source

Properly reset state when resuming from a pause

feature/voice
Andrei 8 years ago
parent
commit
d765a93180
  1. 2
      disco/voice/player.py

2
disco/voice/player.py

@ -74,6 +74,8 @@ class Player(object):
self.paused.wait() self.paused.wait()
gevent.sleep(2) gevent.sleep(2)
self.client.set_speaking(True) self.client.set_speaking(True)
self.start = time.time()
self.loops = 0
if self.client.state == VoiceState.DISCONNECTED: if self.client.state == VoiceState.DISCONNECTED:
return return

Loading…
Cancel
Save