summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-26 12:09:40 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-26 12:53:53 +0100
commit85bbfc60199996baaff0132f6d0b51ebc1e5adf8 (patch)
treec39c1b8f8e149ae6e28d039378d10fbd98e43583
parent44c0cc0bbb11cd17a7c4833791784b0cb5dc6748 (diff)
downloadserver-85bbfc60199996baaff0132f6d0b51ebc1e5adf8.tar.gz
Delete cached game info in join_clients when game is deleted.
-rw-r--r--server.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.js b/server.js
index 3151e53..f0a4d8c 100644
--- a/server.js
+++ b/server.js
@@ -1440,6 +1440,7 @@ function update_join_clients_deleted(game_id) {
res.write("data: The game doesn't exist.\n\n")
}
}
+ delete join_clients[game_id]
}
function update_join_clients_game(game_id) {