X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=ab5108e5d159a29e37739f0c3e23c37adfed0f76;hb=5a187b07e221493931cf089bf85ef6db41d8b775;hp=57557d493e2f0c69a26ab5ad8d2536fba01d99f1;hpb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 57557d49..ab5108e5 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -502,7 +502,7 @@ export default { document.getElementById("cadence").focus(); }, send: function(code, obj) { - if (!!this.conn) { + if (!!this.conn && this.conn.readyState == 1) { this.conn.send(JSON.stringify(Object.assign({ code: code }, obj))); } },