Skip to content
Merged
Show file tree
Hide file tree
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
48 changes: 24 additions & 24 deletions FEATURES.md

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions docs/feature-status.json

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions scripts/capture/record.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,14 @@ function startRecorder(file) {
return {
stop: () =>
new Promise((done) => {
ff.on('exit', done)
// ffmpeg is stopped if it hasn't finished in 5 s. The timer goes when it exits, so it keeps nothing up.
const timer = setTimeout(() => ff.kill('SIGINT'), 5000)
ff.on('exit', () => {
clearTimeout(timer)
done()
})
ff.stdin.write('q')
ff.stdin.end()
setTimeout(() => ff.kill('SIGINT'), 5000)
}),
}
}
Expand Down Expand Up @@ -455,7 +459,15 @@ async function quitOrbit(app) {
electronApp.quit()
})
.catch(() => {})
await Promise.race([exited, sleep(15_000)])
// Up to 15 s for Orbit to exit. The timer goes when it does: a pending one kept the run up for all 15 s.
let timer
await Promise.race([
exited,
new Promise((r) => {
timer = setTimeout(r, 15_000)
}),
])
clearTimeout(timer)
await app.close()
}

Expand Down
Loading