voice: fix receiver null on immediate voiceStateUpdate

This commit is contained in:
Amish Shah
2018-11-15 21:38:02 +00:00
parent 3418b5a1a2
commit 2d68e837e5
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,6 @@ class VoiceReceiver extends EventEmitter {
* @param {Error|string} error The error or message to debug
*/
this.packets.on('error', err => this.emit('debug', err));
this.connection.sockets.udp.socket.on('message', buffer => this.packets.push(buffer));
}
/**