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
No known key found for this signature in database
GPG key ID: 904349C1207D7967

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);
}
/**