ipc: prevent false positive socket closing

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

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)