mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix receiver.recreate()
This commit is contained in:
parent
36435934c7
commit
ea55b0efbd
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -60,7 +60,7 @@ class VoiceReceiver extends EventEmitter {
|
|||
* <info>Any streams that you had prior to destroying the receiver will not be recreated.</info>
|
||||
*/
|
||||
recreate() {
|
||||
if (this.destroyed) return;
|
||||
if (!this.destroyed) return;
|
||||
this.connection.udp.udpSocket.on('message', this._listener);
|
||||
this.destroyed = false;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue