Skip to content

Commit

Permalink
fix(voice): properly initialize UDP socket for receive
Browse files Browse the repository at this point in the history
Discord doesn't start sending voice data until we send them something
  • Loading branch information
abalabahaha committed Nov 15, 2021
1 parent dcf8ff1 commit 56e37c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/voice/VoiceConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ class VoiceConnection extends EventEmitter {
this.connecting = false;
this.reconnecting = false;
this.ready = true;
// Send audio to properly establish the socket (e.g. for voice receive)
this.sendAudioFrame(SILENCE_FRAME);
/**
* Fired when the voice connection turns ready
* @event VoiceConnection#ready
Expand Down

0 comments on commit 56e37c0

Please sign in to comment.