mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 13:10:42 +00:00
Temporary fix
This commit is contained in:
parent
30f02e77c4
commit
639fc99b86
2 changed files with 6 additions and 7 deletions
|
|
@ -58,9 +58,9 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||||
this.playing = false;
|
this.playing = false;
|
||||||
this.playingIntent = null;
|
this.playingIntent = null;
|
||||||
if (this.instream) {
|
if (this.instream) {
|
||||||
console.log(this.instream);
|
this.instream.end();
|
||||||
this.instream.unpipe(this.streamProc);
|
this.instream.destroy();
|
||||||
}if (this.streamProc) this.streamProc.destroy();
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
VoiceConnection.prototype.playRawStream = function playRawStream(stream) {
|
VoiceConnection.prototype.playRawStream = function playRawStream(stream) {
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,9 @@ class VoiceConnection extends EventEmitter {
|
||||||
this.playing = false;
|
this.playing = false;
|
||||||
this.playingIntent = null;
|
this.playingIntent = null;
|
||||||
if(this.instream){
|
if(this.instream){
|
||||||
console.log(this.instream);
|
this.instream.end();
|
||||||
this.instream.unpipe(this.streamProc);
|
this.instream.destroy();
|
||||||
}if (this.streamProc)
|
}
|
||||||
this.streamProc.destroy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
playRawStream(stream) {
|
playRawStream(stream) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue