ipc: clean

This commit is contained in:
jean-emmanuel 2018-02-08 23:35:27 +01:00
parent 5278bebb50
commit 18803b7240

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