Remove leaving users

This commit is contained in:
Bastian Gruber 2023-04-29 10:28:28 +02:00
parent 73823d67ae
commit b5a7e04051
No known key found for this signature in database
GPG key ID: BE9F8C772B188CBF

View file

@ -98,6 +98,7 @@ async fn main() -> Result<()> {
info!("No next frame");
let b =
BroadcastMessage(name.clone(), format!("* {} has left the room", name));
db.0.lock().unwrap().remove(username.clone());
let _ = tx.send(b);
break;
}