fix(StreamDispatcher): only listen to finish event once

This commit is contained in:
NotSugden
2020-02-26 18:49:32 +00:00
parent 6ef404c873
commit 485a6430a8

View File

@@ -66,7 +66,7 @@ class StreamDispatcher extends Writable {
this._silentPausedTime = 0;
this.count = 0;
this.on('finish', () => {
this.once('finish', () => {
this._cleanup();
this._setSpeaking(0);
});