Modern build, fixed WebSocket freezing on invalid URLs
This commit is contained in:
@@ -147,7 +147,9 @@ export default {
|
||||
}
|
||||
},
|
||||
disconnect() {
|
||||
this.socket.close()
|
||||
if (this.socket) {
|
||||
this.socket.close()
|
||||
}
|
||||
},
|
||||
handleError(error) {
|
||||
this.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user