voice: mark speaking as false when paused, prevent repeated pausing

This commit is contained in:
Amish Shah
2018-05-09 14:33:23 +01:00
parent 6cde6decee
commit 841b9de918

View File

@@ -118,7 +118,8 @@ class StreamDispatcher extends Writable {
* Pauses playback
*/
pause() {
this.pausedSince = Date.now();
if (!this.paused) this.pausedSince = Date.now();
this._setSpeaking(false);
}
/**