Need to declare pins even during state restore failure.
This commit is contained in:
parent
64440f7c1c
commit
b1085cb77c
|
@ -65,8 +65,9 @@ intval.init = function () {
|
||||||
expiredInterval: 2 * 60 * 1000, // [NEW] every 2 minutes the process will clean-up the expired cache
|
expiredInterval: 2 * 60 * 1000, // [NEW] every 2 minutes the process will clean-up the expired cache
|
||||||
forgiveParseErrors: false // [NEW]
|
forgiveParseErrors: false // [NEW]
|
||||||
}).then(intval._restoreState).catch((err) => {
|
}).then(intval._restoreState).catch((err) => {
|
||||||
log.error('init', err)
|
log.warn('init', err)
|
||||||
return intval._setState()
|
intval._setState()
|
||||||
|
intval._declarePins()
|
||||||
})
|
})
|
||||||
|
|
||||||
process.on('SIGINT', intval._undeclarePins)
|
process.on('SIGINT', intval._undeclarePins)
|
||||||
|
|
Loading…
Reference in New Issue