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

@@ -129,7 +129,7 @@ var VoiceConnection = (function (_EventEmitter) {
}
if (this.streamProc) {
this.streamProc.stdin.pause();
this.streamProc.kill("SIGINT");
this.streamProc.kill("SIGKILL");
this.streamProc = null;
}
};
@@ -156,6 +156,7 @@ var VoiceConnection = (function (_EventEmitter) {
}
if (!self.playingIntent || !self.playing) {
self.setSpeaking(false);
self.stopPlaying();
retStream.emit("end");
return;
}
@@ -166,6 +167,7 @@ var VoiceConnection = (function (_EventEmitter) {
if (!buffer) {
if (onWarning) {
self.setSpeaking(false);
self.stopPlaying();
retStream.emit("end");
return;
} else {