X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=8d8b311aec49988cbda7837515c5c1ae84255536;hp=c943ff53097d2fc8661bb368520e19487c8a933e;hb=e33e50fa2122c1df2aa9d4d15a2f9d75341b0d70;hpb=0c4c389681ffae83130e9b0b70fe51ebbaf5e5e9 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index c943ff53..8d8b311a 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -476,7 +476,10 @@ export default { // Disconnect means no more tmpIds: if (data.code == "disconnect") { // Remove the live challenge sent by this player: - ArrayFun.remove(this.challenges, c => c.from.sid == data.from); + ArrayFun.remove( + this.challenges, + c => c.type == "live" && c.from.sid == data.from + ); } else { // Remove the matching live game if now unreachable const gid = data.page.match(/[a-zA-Z0-9]+$/)[0];