diff --git a/app/main/ipc/client.js b/app/main/ipc/client.js index 6324591f..fb31abec 100644 --- a/app/main/ipc/client.js +++ b/app/main/ipc/client.js @@ -38,7 +38,7 @@ class Socket extends EventEmitter { this.receive(e.data) } - this.socket.onclose = this.socket.onerror ()=>{ + this.socket.onclose = this.socket.onerror = ()=>{ this.close() }