From 113c506566646811ae61cacf6bba8cad664048b6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 30 Aug 2025 09:20:00 +1200 Subject: [PATCH] Update source/src/commands/list.cpp --- source/src/commands/list.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/src/commands/list.cpp b/source/src/commands/list.cpp index 639a80d..fea1126 100644 --- a/source/src/commands/list.cpp +++ b/source/src/commands/list.cpp @@ -103,7 +103,6 @@ void list_servers() { // First, check which servers are online (with caching per server, not per user) std::map server_online_status; - std::mutex online_status_mutex; transwarp::parallel exec{server_user_pairs.size()}; auto task = transwarp::for_each(exec, server_user_pairs.begin(), server_user_pairs.end(), [&](const server_user_pair& sup) { @@ -122,7 +121,6 @@ void list_servers() { // Check if server is online (with caching to avoid redundant checks for multiple users) bool is_online = false; { - std::lock_guard lock(online_status_mutex); auto it = server_online_status.find(sup.server.get_server_name()); if (it != server_online_status.end()) { is_online = it->second; @@ -158,11 +156,10 @@ void list_servers() { { std::lock_guard lock(tp_mutex); tp.add_row({sup.server.get_server_name(), address_display, sup.user.user, serviceticks, ports_used_str}); - ++checked; - // print out a tick character for each server checked. - info << checked << " ✓ " << std::flush; } + // print out a tick character for each server checked. + info << checked << " ✓ " << std::flush; }); task->wait(); info << std::endl << std::endl;