ipc:client: check if socket check connection status

This commit is contained in:
jean-emmanuel 2018-02-17 17:50:57 +01:00
parent c02fb7036e
commit 37a7e5802b

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
}