Use provided timeoutMS
This commit is contained in:
parent
63c3842770
commit
0949f32638
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ export const ffmpegExec = async (
|
|||
outputFilePath,
|
||||
);
|
||||
|
||||
if (timeoutMS) await withTimeout(execAsync(cmd), 30 * 1000);
|
||||
if (timeoutMS) await withTimeout(execAsync(cmd), timeoutMS);
|
||||
else await execAsync(cmd);
|
||||
|
||||
return fs.readFile(outputFilePath);
|
||||
|
|
Loading…
Add table
Reference in a new issue