This commit is contained in:
jusax23 2021-10-23 12:31:53 +02:00
parent 8c3d55dec1
commit 67fdc60026

View file

@ -67,17 +67,15 @@ const manager = function(process){
});
};
t.saveShutdown = function(){
return new Promise((res,rej)=>{
t.shutdown().then(()=>{
t.shutdown().then(() => {
setTimeout(function() { //some save time
process.exit();
}, 1000);
}).catch(()=>{
}).catch(() => {
setTimeout(function() { //shutdown on error with more save time
process.exit();
}, 10000);
});
});
}
}
export default manager;