diff --git a/protocol.c b/protocol.c index 101d923..3a7dd36 100644 --- a/protocol.c +++ b/protocol.c @@ -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;