mirror of
https://github.com/status-im/codimd.git
synced 2025-02-26 23:31:04 +00:00
Fix SIGINT checkClean should only log error instead throw error
This commit is contained in:
parent
0432fef267
commit
fc788e805e
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…
x
Reference in New Issue
Block a user