From 5a60d781ef0f4016ff8e5a1edbc83a2e301c8b1b Mon Sep 17 00:00:00 2001 From: jusax23 Date: Fri, 26 Aug 2022 22:19:58 +0200 Subject: [PATCH] .catch --- manager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manager.js b/manager.js index f729ad0..a83b6ab 100644 --- a/manager.js +++ b/manager.js @@ -44,6 +44,9 @@ export const shutdown = function(){ a.then(()=>{ running--; mayShutdown(); + }).catch(()=>{ + running--; + mayShutdown(); }); }else{ running--;