diff --git a/lib/intval/index.js b/lib/intval/index.js index 04b3831..df40ad7 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -59,6 +59,9 @@ intval.init = function () { }) }).catch((err) => { log.error('init', err) + fs.rmdirSync('./state') + log.warn('Restarting') + process.exit() }) intval._frame = {