mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
voice: fix write after end (#2567)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user