mirror of
https://github.com/danbulant/discord.js
synced 2026-06-04 07:12:50 +00:00
voice: fix write after end (#2567)
This commit is contained in:
parent
d69e906027
commit
3bfc1ff61c
1 changed files with 5 additions and 0 deletions
|
|
@ -214,6 +214,11 @@ class StreamDispatcher extends Writable {
|
||||||
this.count++;
|
this.count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_final(callback) {
|
||||||
|
this._writeCallback = null;
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
|
||||||
_playChunk(chunk) {
|
_playChunk(chunk) {
|
||||||
if (this.player.dispatcher !== this || !this.player.voiceConnection.authentication.secretKey) return;
|
if (this.player.dispatcher !== this || !this.player.voiceConnection.authentication.secretKey) return;
|
||||||
this._setSpeaking(true);
|
this._setSpeaking(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue