Fix voice 😄

This commit is contained in:
Amish Shah
2016-09-11 16:40:59 +01:00
parent a52beaa78d
commit 77e83fb85a
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class VoiceConnectionPlayer extends EventEmitter {
convertStream(stream, { seek = 0, volume = 1 } = {}) {
const options = { seek: seek, volume: volume };
const encoder = this.converterEngine.createConvertStream(options.seek);
const pipe = stream.pipe(encoder.stdin);
const pipe = stream.pipe(encoder.stdin, { end: false });
pipe.on('unpipe', () => {
this.killStream(encoder.stdout);
pipe.destroy();