Remove extra ()
[vchess.git] / client / src / views / Game.vue
index f1521e6..d4a7b6f 100644 (file)
@@ -456,7 +456,6 @@ export default {
           });
           break;
         case "connect":
-          console.log("connect " + data.from + " " + !!this.people[data.from]);
           if (!this.people[data.from]) {
             this.people[data.from] = { focus: true };
             this.newConnect[data.from] = true; //for self multi-connects tests
@@ -464,11 +463,9 @@ export default {
           }
           break;
         case "disconnect":
-          console.log("disconnect " + data.from);
           this.$delete(this.people, data.from);
           break;
         case "getfocus": {
-          console.log("get focus " + data.from + " " + !!this.people[data.from]);
           let player = this.people[data.from];
           if (!!player) {
             player.focus = true;
@@ -477,7 +474,6 @@ export default {
           break;
         }
         case "losefocus": {
-          console.log("lose focus " + data.from + " " + !!this.people[data.from]);
           let player = this.people[data.from];
           if (!!player) {
             player.focus = false;
@@ -526,6 +522,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 == "*" &&