aboutsummaryrefslogtreecommitdiffhomepage
path: root/protocol.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2010-06-05 20:31:31 +0000
committereihrul <eihrul>2010-06-05 20:31:31 +0000
commit2d985dba913f815302b8fb86c9ff0956f3c2f1a3 (patch)
treed156a1972b119b37e34273c03f2bd268c1c25341 /protocol.c
parent4c8544636be6c928e6675529c46d3c1d1d248f7d (diff)
downloadenet-2d985dba913f815302b8fb86c9ff0956f3c2f1a3.tar.gz
enet-2d985dba913f815302b8fb86c9ff0956f3c2f1a3.zip
fragment dispatching fix
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c3
1 files changed, 3 insertions, 0 deletions
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;