mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +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');
|
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue