From b3c5a9e050d370c1329fe53e79f1e0b3e2f60854 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 7 Feb 2025 21:19:31 -0600 Subject: [PATCH] Update cleanup.ts --- src/cleanup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cleanup.ts b/src/cleanup.ts index 5abb10c..6da640e 100644 --- a/src/cleanup.ts +++ b/src/cleanup.ts @@ -23,7 +23,7 @@ export function removeCleanupListener(listener: CleanupListener): boolean { /** Executes all cleanup listeners and then exits the process. Call this instead of `process.exit` to ensure all listeners are fully executed. */ export async function exitAfterCleanup(code = 0): Promise { - await executeCleanupListeners(code); + await executeCleanupListeners(); process.exit(code); }