ipc:client: check if socket check connection status
This commit is contained in:
parent
c02fb7036e
commit
37a7e5802b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue