ipc: clean

This commit is contained in:
jean-emmanuel 2018-02-08 23:35:27 +01:00
parent 497e69554f
commit 4f3e04909b

View file

@ -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()
}