From 43b4c03c0f9628bb623bd4f1a104c51198ca9ca3 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sun, 26 Feb 2023 14:42:43 +0100 Subject: [PATCH] save delay --- package.json | 2 +- src/nman.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index edbd9b3..f224ab9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nman", - "version": "1.0.1", + "version": "1.0.2", "description": "", "main": "dist/nman.js", "types": "dist/nman.d.ts", diff --git a/src/nman.ts b/src/nman.ts index 5a28f57..f70748b 100644 --- a/src/nman.ts +++ b/src/nman.ts @@ -49,7 +49,7 @@ export const shutdown = async () => { const tasks = prios[i][1]; await Promise.allSettled(tasks.map(t => shutdownSingle(t))); } - process.exit(0); + setTimeout(() => process.exit(0), 500); }; export default { shutdown, addShutdownTask }; \ No newline at end of file