summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/app.js b/app.js
index ce37032b..51b5f093 100644
--- a/app.js
+++ b/app.js
@@ -301,7 +301,13 @@ function handleTermSignals () {
}, 0)
})
if (config.path) {
- fs.unlink(config.path)
+ fs.unlink(config.path, err => {
+ if (err) {
+ logger.error(`Could not cleanup socket: ${err.message}`)
+ } else {
+ logger.info('Successfully cleaned up socket')
+ }
+ })
}
const checkCleanTimer = setInterval(function () {
if (realtime.isReady()) {