This commit is contained in:
Your Name
2024-02-16 17:44:38 -06:00
parent be57e96588
commit 0d8e764b7b

View File

@@ -7,6 +7,7 @@ const socketPath = '/tmp/oscar_watcher.sock';
let progvars = {};
// Remove the socket file if it already exists
if (fs.existsSync( socketPath )) {
try {
fs.unlinkSync(socketPath);
} catch (err) {
@@ -15,6 +16,7 @@ try {
process.exit(1);
}
}
}
const unix_socket_server = net.createServer((connection) => {
console.log('UnixSocket Client connected.');