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