If state is malformed, quit and restart app
This commit is contained in:
parent
dbf641ef69
commit
66ac78fee0
|
@ -59,6 +59,9 @@ intval.init = function () {
|
|||
})
|
||||
}).catch((err) => {
|
||||
log.error('init', err)
|
||||
fs.rmdirSync('./state')
|
||||
log.warn('Restarting')
|
||||
process.exit()
|
||||
})
|
||||
|
||||
intval._frame = {
|
||||
|
|
Loading…
Reference in New Issue