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