From 4f3e04909bc93f60a50606f1de840c831c2b46eb Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 8 Feb 2018 23:35:27 +0100 Subject: [PATCH] ipc: clean --- app/main/ipc/client.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/main/ipc/client.js b/app/main/ipc/client.js index 15b26890..6324591f 100644 --- a/app/main/ipc/client.js +++ b/app/main/ipc/client.js @@ -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() }