mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +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>
|
* <info>Any streams that you had prior to destroying the receiver will not be recreated.</info>
|
||||||
*/
|
*/
|
||||||
recreate() {
|
recreate() {
|
||||||
if (this.destroyed) return;
|
if (!this.destroyed) return;
|
||||||
this.connection.udp.udpSocket.on('message', this._listener);
|
this.connection.udp.udpSocket.on('message', this._listener);
|
||||||
this.destroyed = false;
|
this.destroyed = false;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue