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
1 changed files with 3 additions and 0 deletions

3
app.js
View File

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