From 2d985dba913f815302b8fb86c9ff0956f3c2f1a3 Mon Sep 17 00:00:00 2001 From: eihrul Date: Sat, 5 Jun 2010 20:31:31 +0000 Subject: fragment dispatching fix --- protocol.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocol.c') diff --git a/protocol.c b/protocol.c index 4150a2a..df7dd7b 100644 --- a/protocol.c +++ b/protocol.c @@ -589,6 +589,9 @@ enet_protocol_handle_send_fragment (ENetHost * host, ENetPeer * peer, const ENet memcpy (startCommand -> packet -> data + fragmentOffset, (enet_uint8 *) command + sizeof (ENetProtocolSendFragment), fragmentLength); + + if (startCommand -> fragmentsRemaining <= 0) + enet_peer_dispatch_incoming_reliable_commands (peer, channel); } return 0; -- cgit v1.2.3