mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
cleanup(StreamDispatcher): remove old 'end' event
This commit is contained in:
@@ -68,8 +68,6 @@ class StreamDispatcher extends Writable {
|
|||||||
|
|
||||||
this.on('finish', () => {
|
this.on('finish', () => {
|
||||||
this._cleanup();
|
this._cleanup();
|
||||||
// Still emitting end for backwards compatibility, probably remove it in the future!
|
|
||||||
this.emit('end');
|
|
||||||
this._setSpeaking(0);
|
this._setSpeaking(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user