mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
fix(StreamDispatcher): do nothing when resume is called when not paused
Fixes #2324
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user