ipc: prevent false positive socket closing
This commit is contained in:
parent
4c985111c2
commit
a840bf6eaf
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ class Ipc extends EventEmitter {
|
|||
}
|
||||
|
||||
this.socket.onclose = this.socket.onerror = ()=>{
|
||||
this.close()
|
||||
if (!this.connected()) this.close()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue