From 7f34231849b3d1d5f6e0927a1d8eaa32f59ddc74 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Mon, 2 Oct 2023 11:53:34 -0700 Subject: [PATCH] Shrunk fifo close delay. --- src/scripts/export/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/export/utils.ts b/src/scripts/export/utils.ts index 09bf4a9f..f7e4dede 100644 --- a/src/scripts/export/utils.ts +++ b/src/scripts/export/utils.ts @@ -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) {