mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
One-line an if statement
This commit is contained in:
@@ -319,9 +319,7 @@ class VoiceConnection extends EventEmitter {
|
|||||||
ws.removeAllListeners('speaking');
|
ws.removeAllListeners('speaking');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (udp) {
|
if (udp) udp.removeAllListeners('error');
|
||||||
udp.removeAllListeners('error');
|
|
||||||
}
|
|
||||||
|
|
||||||
this.sockets.ws = null;
|
this.sockets.ws = null;
|
||||||
this.sockets.udp = null;
|
this.sockets.udp = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user