Skip to content

Commit

Permalink
Shrunk fifo close delay.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 2, 2023
1 parent 6b34623 commit 7f34231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/export/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ export const setUpFifoJsonTracer = ({
reject(error)
}
})
// If closed and promise not done after 5 seconds, reject.
// If closed and promise not done after 2 seconds, reject.
fifoRs.on('close', () => {
setTimeout(() => {
if (!done) {
done = true
reject(error)
}
}, 5000)
}, 2000)
})
// Close the FIFO if it is not already closed, so it ends.
if (!fifoRs.closed) {
Expand Down

0 comments on commit 7f34231

Please sign in to comment.