This commit is contained in:
jacoobes
2025-02-03 18:34:26 -06:00
parent ef3d3d71a0
commit 926d531863

View File

@@ -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<never> {
await executeCleanupListeners(code);
await executeCleanupListeners();
process.exit(code);
}