diff --git a/lib/main.js b/lib/main.js index 07c46d5..9d26b44 100755 --- a/lib/main.js +++ b/lib/main.js @@ -212,9 +212,15 @@ let startPreparationTask = () => { * Question status * @type {Boolean} */ - let didShowQuestion = false + let didShowQuestion = false /** + * Primary Task Started + * @type {Boolean} + */ + let didStartPrimaryTask = false + + /** * Handles prepTask.stdout * @param {Buffer|String} data - FFmpeg Live Log Output Buffer */ @@ -230,7 +236,10 @@ let startPreparationTask = () => { } // Send SIGKILL: preparation task succeeded prepTask.kill('SIGKILL') - startPrimaryTask(outputDuration, outputFilename) + if(!didStartPrimaryTask) { + startPrimaryTask(outputDuration, outputFilename) + didStartPrimaryTask = true + } } }