fix unix socket not removed on shutdown (#50)

* fix unix socket not removed on shutdown

Signed-off-by: naimo <nicolas@aimon.fr>
This commit is contained in:
naimo 2019-04-16 18:19:11 +02:00 committed by Christoph (Sheogorath) Kern
parent d359d4aa84
commit cc53d5ebfa

3
app.js
View file

@ -289,6 +289,9 @@ function handleTermSignals () {
socket.disconnect(true) socket.disconnect(true)
}, 0) }, 0)
}) })
if (config.path) {
fs.unlink(config.path)
}
var checkCleanTimer = setInterval(function () { var checkCleanTimer = setInterval(function () {
if (realtime.isReady()) { if (realtime.isReady()) {
models.Revision.checkAllNotesRevision(function (err, notes) { models.Revision.checkAllNotesRevision(function (err, notes) {