mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-25 02:51:57 +01:00
⚰️ Removed dead code
This commit is contained in:
parent
6b5c71a4e9
commit
9c26ff6ba3
@ -234,23 +234,6 @@ export class DiscordVoiceService {
|
||||
this.logger.error(`Voice connection error: ${err}`);
|
||||
});
|
||||
|
||||
// Tempoary keep alive fix for servers, see https://github.com/discordjs/discord.js/issues/9185
|
||||
this.voiceConnection.on('stateChange', (oldState, newState) => {
|
||||
const oldNetworking = Reflect.get(oldState, 'networking');
|
||||
const newNetworking = Reflect.get(newState, 'networking');
|
||||
|
||||
const networkStateChangeHandler = (
|
||||
oldNetworkState: any,
|
||||
newNetworkState: any,
|
||||
) => {
|
||||
const newUdp = Reflect.get(newNetworkState, 'udp');
|
||||
clearInterval(newUdp?.keepAliveInterval);
|
||||
};
|
||||
|
||||
oldNetworking?.off('stateChange', networkStateChangeHandler);
|
||||
newNetworking?.on('stateChange', networkStateChangeHandler);
|
||||
});
|
||||
|
||||
this.audioPlayer.on('debug', (message) => {
|
||||
this.logger.debug(message);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user