avoid creating a thread every packet

This commit is contained in:
Lion Kortlepel 2024-06-19 15:53:49 +02:00
parent 25f28e7fee
commit fc454cd11e
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -230,8 +230,7 @@ void GameHandler(SOCKET Client) {
if (Temp < 1)
break;
std::thread Respond(Parse, Ret, Client);
Respond.detach();
Parse(Ret, Client);
} while (Temp > 0);
if (Temp == 0) {
debug("(Core) Connection closing");