fix: incorrect header

This commit is contained in:
2025-12-03 17:53:16 -05:00
Unverified
parent d6cc2c18af
commit 94ff76ebcb

View File

@@ -515,7 +515,7 @@ async fn handle_connection(
else if text == "PLAYER:LIST" { else if text == "PLAYER:LIST" {
let clients_guard = clients.read().await; let clients_guard = clients.read().await;
let mut to_send = "GAME:LIST:".to_string(); let mut to_send = "PLAYER:LIST:".to_string();
for client_guard in clients_guard.values() { for client_guard in clients_guard.values() {
let player = client_guard.read().await; let player = client_guard.read().await;
to_send += player.username.as_str(); to_send += ","; to_send += player.username.as_str(); to_send += ",";