mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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.count = 0;
|
||||
|
||||
this.on('finish', () => {
|
||||
this.once('finish', () => {
|
||||
this._cleanup();
|
||||
this._setSpeaking(0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user