diff options
author | eihrul <eihrul> | 2010-06-05 20:31:31 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2010-06-05 20:31:31 +0000 |
commit | 2d985dba913f815302b8fb86c9ff0956f3c2f1a3 (patch) | |
tree | d156a1972b119b37e34273c03f2bd268c1c25341 /protocol.c | |
parent | 4c8544636be6c928e6675529c46d3c1d1d248f7d (diff) | |
download | enet-2d985dba913f815302b8fb86c9ff0956f3c2f1a3.tar.gz enet-2d985dba913f815302b8fb86c9ff0956f3c2f1a3.zip |
fragment dispatching fix
Diffstat (limited to 'protocol.c')
-rw-r--r-- | protocol.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |