kopia lustrzana https://github.com/mifi/lossless-cut
try to fix script
rodzic
ca8eccf899
commit
de75dc0821
|
@ -15,7 +15,7 @@ assert(screenshotOutPath);
|
||||||
|
|
||||||
const port = 8081;
|
const port = 8081;
|
||||||
|
|
||||||
const ps = execa(losslessCutExePath, ['--http-api', String(port)]);
|
const ps = execa(losslessCutExePath, ['--http-api', String(port)], { forceKillAfterDelay: 10000 });
|
||||||
|
|
||||||
console.log('Started', losslessCutExePath);
|
console.log('Started', losslessCutExePath);
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ try {
|
||||||
await client.post('api/action/quit').text();
|
await client.post('api/action/quit').text();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('Quit command failed', err);
|
console.warn('Quit command failed', err);
|
||||||
|
ps.kill();
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
// ps.cancel();
|
// ps.cancel();
|
||||||
|
|
Ładowanie…
Reference in New Issue