mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
fix(StreamDispatcher): only listen to finish event once
This commit is contained in:
@@ -66,7 +66,7 @@ class StreamDispatcher extends Writable {
|
|||||||
this._silentPausedTime = 0;
|
this._silentPausedTime = 0;
|
||||||
this.count = 0;
|
this.count = 0;
|
||||||
|
|
||||||
this.on('finish', () => {
|
this.once('finish', () => {
|
||||||
this._cleanup();
|
this._cleanup();
|
||||||
this._setSpeaking(0);
|
this._setSpeaking(0);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user