From dd5b0bdd6d99f3bfa35b471180d63a43070c351f Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 30 Mar 2021 01:44:32 +0200 Subject: [PATCH] add id to debug thread id print --- src/TNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index 03110bc..5b7f7d5 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -296,7 +296,7 @@ void TNetwork::Authentication(SOCKET TCPSock) { return; } - RegisterThread(Client->GetName()); + RegisterThread("(" + std::to_string(Client->GetID()) + ") " + Client->GetName()); debug("Name -> " + Client->GetName() + ", Guest -> " + std::to_string(Client->IsGuest()) + ", Roles -> " + Client->GetRoles()); debug("There are " + std::to_string(mServer.ClientCount()) + " known clients"); mServer.ForEachClient([&](const std::weak_ptr& ClientPtr) -> bool {