diff --git a/manager.js b/manager.js index 8eff7b6..15b2de8 100644 --- a/manager.js +++ b/manager.js @@ -67,16 +67,14 @@ const manager = function(process){ }); }; t.saveShutdown = function(){ - return new Promise((res,rej)=>{ - t.shutdown().then(()=>{ - setTimeout(function() { //some save time - process.exit(); - }, 1000); - }).catch(()=>{ - setTimeout(function() { //shutdown on error with more save time - process.exit(); - }, 10000); - }); + t.shutdown().then(() => { + setTimeout(function() { //some save time + process.exit(); + }, 1000); + }).catch(() => { + setTimeout(function() { //shutdown on error with more save time + process.exit(); + }, 10000); }); } }