From 639fc99b861e0ed6d7e07f24b126a71217ac661e Mon Sep 17 00:00:00 2001 From: hydrabolt Date: Sun, 8 Nov 2015 12:41:39 +0000 Subject: [PATCH] Temporary fix --- lib/Voice/VoiceConnection.js | 6 +++--- src/Voice/VoiceConnection.js | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/Voice/VoiceConnection.js b/lib/Voice/VoiceConnection.js index 226527f33..ebe6604fb 100644 --- a/lib/Voice/VoiceConnection.js +++ b/lib/Voice/VoiceConnection.js @@ -58,9 +58,9 @@ var VoiceConnection = (function (_EventEmitter) { this.playing = false; this.playingIntent = null; if (this.instream) { - console.log(this.instream); - this.instream.unpipe(this.streamProc); - }if (this.streamProc) this.streamProc.destroy(); + this.instream.end(); + this.instream.destroy(); + } }; VoiceConnection.prototype.playRawStream = function playRawStream(stream) { diff --git a/src/Voice/VoiceConnection.js b/src/Voice/VoiceConnection.js index a4b829bca..9e053ad50 100644 --- a/src/Voice/VoiceConnection.js +++ b/src/Voice/VoiceConnection.js @@ -51,10 +51,9 @@ class VoiceConnection extends EventEmitter { this.playing = false; this.playingIntent = null; if(this.instream){ - console.log(this.instream); - this.instream.unpipe(this.streamProc); - }if (this.streamProc) - this.streamProc.destroy(); + this.instream.end(); + this.instream.destroy(); + } } playRawStream(stream) {