If state is malformed, quit and restart app

This commit is contained in:
mmcw-dev 2017-12-20 21:03:57 -05:00
parent dbf641ef69
commit 66ac78fee0
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ intval.init = function () {
})
}).catch((err) => {
log.error('init', err)
fs.rmdirSync('./state')
log.warn('Restarting')
process.exit()
})
intval._frame = {