From cc10e5001f20c2fcbb51107fb46245ccc86b3b7a Mon Sep 17 00:00:00 2001 From: rasul Date: Mon, 6 Apr 2020 14:12:27 -0500 Subject: [PATCH] remove from connected_players when quit --- src/game/iter_once.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/iter_once.rs b/src/game/iter_once.rs index 247cbca..85ade39 100644 --- a/src/game/iter_once.rs +++ b/src/game/iter_once.rs @@ -43,6 +43,7 @@ impl Game { let _ = client.close(); log::info!("Disconnect from {}", client); self.clients.remove(&token); + let _ = self.db.remove_connected_player(token); self.tokens.push_back(token); } }