ipc: prevent false positive socket closing
This commit is contained in:
parent
c6d7b2e222
commit
3c5ed1c42b
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()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue