mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
limit number of packets that can be received per iteration of protocol loop
This commit is contained in:
parent
d85a037ec4
commit
6ef4e7d277
1 changed files with 3 additions and 1 deletions
|
@ -1191,7 +1191,9 @@ commandError:
|
|||
static int
|
||||
enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event)
|
||||
{
|
||||
for (;;)
|
||||
int packets;
|
||||
|
||||
for (packets = 0; packets < 256; ++ packets)
|
||||
{
|
||||
int receivedLength;
|
||||
ENetBuffer buffer;
|
||||
|
|
Loading…
Reference in a new issue