Fix SIGINT checkClean should only log error instead throw error
This commit is contained in:
parent
0432fef267
commit
fc788e805e
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -639,7 +639,7 @@ process.on('SIGINT', function () {
|
|||
var checkCleanTimer = setInterval(function () {
|
||||
if (history.isReady() && realtime.isReady()) {
|
||||
models.Revision.checkAllNotesRevision(function (err, notes) {
|
||||
if (err) throw new Error(err);
|
||||
if (err) return logger.error(err);
|
||||
if (!notes || notes.length <= 0) {
|
||||
clearInterval(checkCleanTimer);
|
||||
return process.exit(0);
|
||||
|
|
Loading…
Reference in a new issue