mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix worker will die if the master exit
This commit is contained in:
parent
9c19fd5e8e
commit
fc2ba410ad
@ -128,6 +128,7 @@ function workerAppender(config) {
|
||||
socket.on('timeout', socket.end.bind(socket));
|
||||
// don't bother listening for 'error', 'close' gets called after that anyway
|
||||
socket.on('close', createSocket);
|
||||
socket.on('error', () => {});
|
||||
}
|
||||
|
||||
createSocket();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user