mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
voice: null-check UDP socket
This commit is contained in:
parent
695ff1e70f
commit
d81441f627
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ class StreamDispatcher extends VolumeInterface {
|
||||||
* @param {string} info The debug info
|
* @param {string} info The debug info
|
||||||
*/
|
*/
|
||||||
this.setSpeaking(true);
|
this.setSpeaking(true);
|
||||||
while (repeats--) {
|
while (repeats-- && this.player.voiceConnection.sockets.udp) {
|
||||||
this.player.voiceConnection.sockets.udp.send(packet)
|
this.player.voiceConnection.sockets.udp.send(packet)
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
this.setSpeaking(false);
|
this.setSpeaking(false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue