fix: deadlock...again
This commit is contained in:
1 parent
8d4f69f7bb
commit
f7305e4b43
1 file changed
+3
-1
+3
-1
@@ -722,7 +722,9 @@ async fn handle_connection(
|
|||||||
drop(client);
|
drop(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
sd.clients.write().await.remove(&addr).unwrap();
|
drop(clients_guard);
|
||||||
|
|
||||||
|
sd.clients.write().await.remove(&addr);
|
||||||
sd.usernames.write().await.remove(&username);
|
sd.usernames.write().await.remove(&username);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user