Fix receiver.recreate()

This commit is contained in:
Amish Shah
2016-09-12 17:43:40 +01:00
parent 36435934c7
commit ea55b0efbd
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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;