mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +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
|
||||
*/
|
||||
resume() {
|
||||
if (!this.pausedSince) return;
|
||||
this._pausedTime += Date.now() - this.pausedSince;
|
||||
this.pausedSince = null;
|
||||
if (this._writeCallback) this._writeCallback();
|
||||
|
||||
Reference in New Issue
Block a user