mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-16 16:27:15 +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)
|
if (Temp < 1)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
std::thread Respond(Parse, Ret, Client);
|
Parse(Ret, Client);
|
||||||
Respond.detach();
|
|
||||||
} while (Temp > 0);
|
} while (Temp > 0);
|
||||||
if (Temp == 0) {
|
if (Temp == 0) {
|
||||||
debug("(Core) Connection closing");
|
debug("(Core) Connection closing");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user