Fix possible event memory leak
This commit is contained in:
parent
0da673975b
commit
cef69fa6c2
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ export async function nextSong(client, options, connection, track, info, music,
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
connection.removeAllListeners("error");
|
connection.removeAllListeners("exception");
|
||||||
connection.removeAllListeners("end");
|
connection.removeAllListeners("end");
|
||||||
connection.playTrack({ track });
|
connection.playTrack({ track });
|
||||||
players.set(voiceChannel.guild.id, { player: connection, type: music ? "music" : "sound", host: host, voiceChannel: voiceChannel, originalChannel: options.channel, loop, shuffle, playMessage: playingMessage });
|
players.set(voiceChannel.guild.id, { player: connection, type: music ? "music" : "sound", host: host, voiceChannel: voiceChannel, originalChannel: options.channel, loop, shuffle, playMessage: playingMessage });
|
||||||
|
|
Loading…
Reference in a new issue