Improvement attempt for connection indicator + Game robustness... fingers crossed
[vchess.git] / client / src / views / Game.vue
index f7e5549..f12290d 100644 (file)
@@ -458,6 +458,7 @@ export default {
         case "connect":
           if (!this.people[data.from]) {
             this.people[data.from] = { focus: true };
+            this.$forceUpdate(); //TODO: shouldn't be required
             this.newConnect[data.from] = true; //for self multi-connects tests
             this.send("askidentity", { target: data.from });
           }
@@ -522,6 +523,7 @@ export default {
           if (!this.killed[this.st.user.sid]) {
             // Ask potentially missed last state, if opponent and I play
             if (
+              !this.gotLastate &&
               !!this.game.mycolor &&
               this.game.type == "live" &&
               this.game.score == "*" &&