From d765a93180736e39acc6102121adf6349020e750 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 5 Apr 2017 14:10:26 -0700 Subject: [PATCH] Properly reset state when resuming from a pause --- disco/voice/player.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/disco/voice/player.py b/disco/voice/player.py index 0031146..fcae346 100644 --- a/disco/voice/player.py +++ b/disco/voice/player.py @@ -74,6 +74,8 @@ class Player(object): self.paused.wait() gevent.sleep(2) self.client.set_speaking(True) + self.start = time.time() + self.loops = 0 if self.client.state == VoiceState.DISCONNECTED: return