diff options
author | Yukai Huang | 2016-10-12 18:19:08 +0800 |
---|---|---|
committer | Yukai Huang | 2016-10-12 18:19:08 +0800 |
commit | 2f11706dd256502d3ad5912fce777bc19b92b609 (patch) | |
tree | e974cc6912603889da66d34b28f995b12d6a94fb /app.js | |
parent | ae3d142d9c36095b17f3468a44d28ad6f15ccbdd (diff) | |
parent | c98d2639286344188f50045ab2e28a157df7ddf7 (diff) |
Merge branch 'master' into webpack-frontend
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -512,7 +512,7 @@ process.on('SIGINT', function () { if (history.isReady() && realtime.isReady()) { models.Revision.checkAllNotesRevision(function (err, notes) { if (err) throw new Error(err); - if (notes.length <= 0) { + if (!notes || notes.length <= 0) { clearInterval(checkCleanTimer); return process.exit(0); } |