mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
One-line an if statement
This commit is contained in:
parent
275c9953a0
commit
dfb1a16e9e
1 changed files with 1 additions and 3 deletions
|
|
@ -319,9 +319,7 @@ class VoiceConnection extends EventEmitter {
|
|||
ws.removeAllListeners('speaking');
|
||||
}
|
||||
|
||||
if (udp) {
|
||||
udp.removeAllListeners('error');
|
||||
}
|
||||
if (udp) udp.removeAllListeners('error');
|
||||
|
||||
this.sockets.ws = null;
|
||||
this.sockets.udp = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue