wip
This commit is contained in:
@@ -7,12 +7,14 @@ const socketPath = '/tmp/oscar_watcher.sock';
|
|||||||
let progvars = {};
|
let progvars = {};
|
||||||
|
|
||||||
// Remove the socket file if it already exists
|
// Remove the socket file if it already exists
|
||||||
try {
|
if (fs.existsSync( socketPath )) {
|
||||||
fs.unlinkSync(socketPath);
|
try {
|
||||||
} catch (err) {
|
fs.unlinkSync(socketPath);
|
||||||
if (err.code !== 'ENOENT') {
|
} catch (err) {
|
||||||
console.error('Error removing existing socket file:', err);
|
if (err.code !== 'ENOENT') {
|
||||||
process.exit(1);
|
console.error('Error removing existing socket file:', err);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user