mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-16 00:06:41 +00:00
avoid creating a thread every packet
This commit is contained in:
parent
25f28e7fee
commit
fc454cd11e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user