ipc:client: check if socket check connection status

This commit is contained in:
jean-emmanuel 2018-02-17 17:50:57 +01:00
parent d11f88b992
commit 02d8ca656c

View file

@ -92,7 +92,7 @@ class Ipc extends EventEmitter {
connected() {
return this.socket.readyState == this.socket.OPEN
return this.socket && this.socket.readyState == this.socket.OPEN
}