Skip to content

Commit

Permalink
voice: fix write after end (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Jun 13, 2018
1 parent d69e906 commit 3bfc1ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/voice/dispatcher/StreamDispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3bfc1ff

Please sign in to comment.