Don't kill ffmpeg for HTTP 416

This commit is contained in:
calzoneman 2015-08-11 18:25:14 -07:00
parent 3cac6d2d10
commit a405c2c5fa

View file

@ -175,7 +175,7 @@ exports.ffprobe = function ffprobe(filename, cb) {
child.stderr.on("data", function (data) { child.stderr.on("data", function (data) {
stderr += data; stderr += data;
if (stderr.match(/the tls connection was non-properly terminated|http error 416/i)) { if (stderr.match(/the tls connection was non-properly terminated/i)) {
fflog("Killing ffprobe for " + filename + " due to TLS error"); fflog("Killing ffprobe for " + filename + " due to TLS error");
childErr = new Error("Remote server closed connection unexpectedly"); childErr = new Error("Remote server closed connection unexpectedly");
child.kill("SIGKILL"); child.kill("SIGKILL");