mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +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() {
|
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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue