summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaimo2019-04-16 18:19:11 +0200
committerChristoph (Sheogorath) Kern2019-04-16 18:19:11 +0200
commitcc53d5ebfa0e1b3149c44cd3507e3f57d1a06e06 (patch)
treec951aaa24db5cd61f899c61b532269e9fa4a95ba
parentd359d4aa847c8c1a86eb344f424efa377f7b8aaa (diff)
fix unix socket not removed on shutdown (#50)
* fix unix socket not removed on shutdown Signed-off-by: naimo <nicolas@aimon.fr>
Diffstat (limited to '')
-rw-r--r--app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app.js b/app.js
index 3de99e6c..ceb22596 100644
--- a/app.js
+++ b/app.js
@@ -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) {