maybe fix again

This commit is contained in:
Amish Shah
2016-10-24 17:41:37 +01:00
parent c6d0c31c84
commit 17586f0e20
2 changed files with 15 additions and 0 deletions

View File

@@ -39,6 +39,11 @@ class VoiceConnection extends EventEmitter {
this.player = new AudioPlayer(this);
this.player.on('error', e => {
this.emit('warn', e);
this.player.cleanup();
});
/**
* Object that wraps contains the `ws` and `udp` sockets of this voice connection
* @type {object}