ipc: clean
This commit is contained in:
parent
497e69554f
commit
4f3e04909b
1 changed files with 1 additions and 7 deletions
|
|
@ -38,13 +38,7 @@ class Socket extends EventEmitter {
|
|||
this.receive(e.data)
|
||||
}
|
||||
|
||||
this.socket.onclose = ()=>{
|
||||
console.log('close')
|
||||
this.close()
|
||||
}
|
||||
|
||||
this.socket.onerror = ()=>{
|
||||
console.log('error')
|
||||
this.socket.onclose = this.socket.onerror ()=>{
|
||||
this.close()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue