FFMPEG fix (finally) (#390)

Programmix sucks at this
This commit is contained in:
Programmix
2016-05-30 11:13:01 -07:00
committed by abalabahaha
parent 6bc2750f3d
commit 6b5f4fa773
4 changed files with 40 additions and 34 deletions

View File

@@ -93,7 +93,7 @@ export default class VoiceConnection extends EventEmitter {
}
if (this.streamProc) {
this.streamProc.stdin.pause();
this.streamProc.kill("SIGINT");
this.streamProc.kill("SIGKILL");
this.streamProc = null;
}
}
@@ -118,6 +118,7 @@ export default class VoiceConnection extends EventEmitter {
}
if (!self.playingIntent || !self.playing) {
self.setSpeaking(false);
self.stopPlaying();
retStream.emit("end");
return;
}
@@ -128,6 +129,7 @@ export default class VoiceConnection extends EventEmitter {
if (!buffer) {
if (onWarning) {
self.setSpeaking(false);
self.stopPlaying();
retStream.emit("end");
return;
} else {