mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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() {
|
||||
if (this.paused) return;
|
||||
if (this.streams.opus) this.streams.opus.unpipe(this);
|
||||
this._writeCallback();
|
||||
if (this._writeCallback) this._writeCallback();
|
||||
this._setSpeaking(false);
|
||||
this.pausedSince = Date.now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user