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