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--;