mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +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++;
|
||||
}
|
||||
|
||||
_final(callback) {
|
||||
this._writeCallback = null;
|
||||
callback();
|
||||
}
|
||||
|
||||
_playChunk(chunk) {
|
||||
if (this.player.dispatcher !== this || !this.player.voiceConnection.authentication.secretKey) return;
|
||||
this._setSpeaking(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue