wip
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user