mirror of
https://github.com/danbulant/discord.js
synced 2026-06-02 06:11:21 +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
|
||||
*/
|
||||
resume() {
|
||||
if (!this.pausedSince) return;
|
||||
this._pausedTime += Date.now() - this.pausedSince;
|
||||
this.pausedSince = null;
|
||||
if (this._writeCallback) this._writeCallback();
|
||||
|
|
|
|||
Loading…
Reference in a new issue