diff options
-rw-r--r-- | app.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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()) { |