Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -230,7 +236,10 @@ let startPreparationTask = () => {
}
// Send SIGKILL: preparation task succeeded
prepTask.kill('SIGKILL')
startPrimaryTask(outputDuration, outputFilename)
if(!didStartPrimaryTask) {
startPrimaryTask(outputDuration, outputFilename)
didStartPrimaryTask = true
}
}
}

Expand Down