mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
voice: fix StreamDispatcher#pause trying to call null function
This commit is contained in:
parent
bfde1dd8f2
commit
6852a15cee
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue