mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
attempt to fix client thread registering again
This commit is contained in:
@@ -296,7 +296,6 @@ void TNetwork::Authentication(SOCKET TCPSock) {
|
||||
return;
|
||||
}
|
||||
|
||||
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<TClient>& ClientPtr) -> bool {
|
||||
@@ -475,6 +474,7 @@ void TNetwork::TCPClient(const std::weak_ptr<TClient>& c) {
|
||||
mServer.RemoveClient(c);
|
||||
return;
|
||||
}
|
||||
RegisterThread("(" + std::to_string(c.lock()->GetID()) + ") \"" + c.lock()->GetName() + "\"");
|
||||
OnConnect(c);
|
||||
while (true) {
|
||||
if (c.expired())
|
||||
|
||||
Reference in New Issue
Block a user