diff --git a/server/libs/nodeFfprobe/index.js b/server/libs/nodeFfprobe/index.js index bdab89ad..a2f284cb 100644 --- a/server/libs/nodeFfprobe/index.js +++ b/server/libs/nodeFfprobe/index.js @@ -18,7 +18,10 @@ module.exports = (function () { proc.stdout.on('data', function (data) { probeData.push(data) }) proc.stderr.on('data', function (data) { errData.push(data) }) - proc.on('exit', code => { exitCode = code }) + proc.on('exit', code => { + exitCode = code + proc.kill() + }) proc.on('error', err => reject(err)) proc.on('close', () => { try {