Modern build, fixed WebSocket freezing on invalid URLs

This commit is contained in:
Liyas Thomas
2020-11-22 07:05:04 +05:30
parent 307e434f91
commit b8d68ee359
2 changed files with 4 additions and 2 deletions

View File

@@ -147,7 +147,9 @@ export default {
}
},
disconnect() {
this.socket.close()
if (this.socket) {
this.socket.close()
}
},
handleError(error) {
this.disconnect()