mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
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