diff --git a/lib/intval/index.js b/lib/intval/index.js index fd43121..6e2ea37 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -65,8 +65,9 @@ intval.init = function () { expiredInterval: 2 * 60 * 1000, // [NEW] every 2 minutes the process will clean-up the expired cache forgiveParseErrors: false // [NEW] }).then(intval._restoreState).catch((err) => { - log.error('init', err) - return intval._setState() + log.warn('init', err) + intval._setState() + intval._declarePins() }) process.on('SIGINT', intval._undeclarePins)