Remove leaving users
This commit is contained in:
parent
73823d67ae
commit
b5a7e04051
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue