Temporary fix

This commit is contained in:
hydrabolt
2015-11-08 12:41:39 +00:00
parent 30f02e77c4
commit 639fc99b86
2 changed files with 6 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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) {