From 37c983ce0b366553e50ca5cd58f9fd6398248e99 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 8 Apr 2022 05:15:06 -0400 Subject: [PATCH] Don't allow having two node modules use the same socket --- node/src/clientmanager.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/node/src/clientmanager.js b/node/src/clientmanager.js index 988dc63..9305790 100644 --- a/node/src/clientmanager.js +++ b/node/src/clientmanager.js @@ -52,9 +52,6 @@ export default class ClientManager { } catch (err) { await fs.promises.mkdir(path.dirname(socketPath), 0o700) } - try { - await fs.promises.unlink(socketPath) - } catch (err) {} await promisify(cb => this.server.listen(socketPath, cb)) await fs.promises.chmod(socketPath, 0o700) this.log("Now listening at", socketPath)