diff options
author | Lee Salzman <[email protected]> | 2020-11-13 00:11:34 -0500 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2020-11-13 00:11:34 -0500 |
commit | 4de13a2c2e98845f681c6e6221dc444877bd1cb7 (patch) | |
tree | f5b2938f5ea4cf4c07ad24fe06b35698b718661f | |
parent | 0d1fb32ee8e99c5fd06a5326dc1e5af4d8c98e23 (diff) | |
download | enet-4de13a2c2e98845f681c6e6221dc444877bd1cb7.tar.gz enet-4de13a2c2e98845f681c6e6221dc444877bd1cb7.zip |
avoid sending packets in unacknowledged window
-rw-r--r-- | protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1411,8 +1411,8 @@ enet_protocol_check_outgoing_commands (ENetHost * host, ENetPeer * peer) outgoingCommand -> sendAttempts < 1 && ! (outgoingCommand -> reliableSequenceNumber % ENET_PEER_RELIABLE_WINDOW_SIZE) && (channel -> reliableWindows [(reliableWindow + ENET_PEER_RELIABLE_WINDOWS - 1) % ENET_PEER_RELIABLE_WINDOWS] >= ENET_PEER_RELIABLE_WINDOW_SIZE || - channel -> usedReliableWindows & ((((1 << (ENET_PEER_FREE_RELIABLE_WINDOWS + 1)) - 1) << reliableWindow) | - (((1 << (ENET_PEER_FREE_RELIABLE_WINDOWS + 1)) - 1) >> (ENET_PEER_RELIABLE_WINDOWS - reliableWindow))))) + channel -> usedReliableWindows & ((((1 << (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) << reliableWindow) | + (((1 << (ENET_PEER_FREE_RELIABLE_WINDOWS + 2)) - 1) >> (ENET_PEER_RELIABLE_WINDOWS - reliableWindow))))) windowWrap = 1; if (windowWrap) { |