mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 20:51:14 +00:00
fix(StreamDispatcher): do nothing when resume is called when not paused
Fixes #2324
This commit is contained in:
parent
77dc3aafaa
commit
05c5bdc476
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ class StreamDispatcher extends Writable {
|
||||||
* Resumes playback
|
* Resumes playback
|
||||||
*/
|
*/
|
||||||
resume() {
|
resume() {
|
||||||
|
if (!this.pausedSince) return;
|
||||||
this._pausedTime += Date.now() - this.pausedSince;
|
this._pausedTime += Date.now() - this.pausedSince;
|
||||||
this.pausedSince = null;
|
this.pausedSince = null;
|
||||||
if (this._writeCallback) this._writeCallback();
|
if (this._writeCallback) this._writeCallback();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue