mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed multiple avconvs/ffmpeg processes still staying alive
This commit is contained in:
@@ -92,6 +92,8 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
this.playing = false;
|
||||
this.playingIntent = null;
|
||||
if (this.streamProc) {
|
||||
this.streamProc.stdin.pause();
|
||||
this.streamProc.kill("SIGINT");
|
||||
this.streamProc.kill();
|
||||
}
|
||||
if (this.instream) {
|
||||
@@ -129,7 +131,7 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
if (!self.playingIntent || !self.playing) {
|
||||
self.setSpeaking(false);
|
||||
retStream.emit("end");
|
||||
console.log("ending 1");
|
||||
//console.log("ending 1");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@@ -140,7 +142,7 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
if (onWarning) {
|
||||
retStream.emit("end");
|
||||
self.setSpeaking(false);
|
||||
console.log("ending 2");
|
||||
//console.log("ending 2");
|
||||
return;
|
||||
} else {
|
||||
onWarning = true;
|
||||
|
||||
Reference in New Issue
Block a user