mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
voice: fix StreamDispatcher#pause trying to call null function
This commit is contained in:
@@ -123,7 +123,7 @@ class StreamDispatcher extends Writable {
|
|||||||
pause() {
|
pause() {
|
||||||
if (this.paused) return;
|
if (this.paused) return;
|
||||||
if (this.streams.opus) this.streams.opus.unpipe(this);
|
if (this.streams.opus) this.streams.opus.unpipe(this);
|
||||||
this._writeCallback();
|
if (this._writeCallback) this._writeCallback();
|
||||||
this._setSpeaking(false);
|
this._setSpeaking(false);
|
||||||
this.pausedSince = Date.now();
|
this.pausedSince = Date.now();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user