remove from connected_players when quit

master
rasul 5 years ago
parent 933c63f717
commit cc10e5001f

@ -43,6 +43,7 @@ impl Game {
let _ = client.close(); let _ = client.close();
log::info!("Disconnect from {}", client); log::info!("Disconnect from {}", client);
self.clients.remove(&token); self.clients.remove(&token);
let _ = self.db.remove_connected_player(token);
self.tokens.push_back(token); self.tokens.push_back(token);
} }
} }

Loading…
Cancel
Save