ipc: prevent false positive socket closing

This commit is contained in:
jean-emmanuel 2019-01-08 13:16:43 +01:00
parent 4c985111c2
commit a840bf6eaf
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class Ipc extends EventEmitter {
}
this.socket.onclose = this.socket.onerror = ()=>{
this.close()
if (!this.connected()) this.close()
}
}

View file

@ -44,7 +44,7 @@ class Socket extends EventEmitter {
}
this.socket.onclose = this.socket.onerror = ()=>{
this.close()
if (!this.connected()) this.close()
}
this.dieTimeout = clearTimeout(this.dieTimeout)