aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoreihrul <eihrul>2007-10-12 19:17:09 +0000
committereihrul <eihrul>2007-10-12 19:17:09 +0000
commit88dd1dc19e86a5066d7c1d888277ddc666e0a091 (patch)
treed6264bce12a6ec495f0a574f14afcff9d2447c0c
parent3b9f652290c5c918b459c6e924a48fee2b0795f7 (diff)
downloadenet-88dd1dc19e86a5066d7c1d888277ddc666e0a091.tar.gz
enet-88dd1dc19e86a5066d7c1d888277ddc666e0a091.zip
*** empty log message ***
-rw-r--r--protocol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocol.c b/protocol.c
index 3173fe0..f2f64cc 100644
--- a/protocol.c
+++ b/protocol.c
@@ -1104,9 +1104,10 @@ static int
enet_protocol_check_timeouts (ENetHost * host, ENetPeer * peer, ENetEvent * event)
{
ENetOutgoingCommand * outgoingCommand;
- ENetListIterator currentCommand;
+ ENetListIterator currentCommand, insertPosition;
currentCommand = enet_list_begin (& peer -> sentReliableCommands);
+ insertPosition = enet_list_begin (& peer -> outgoingReliableCommands);
while (currentCommand != enet_list_end (& peer -> sentReliableCommands))
{
@@ -1138,8 +1139,7 @@ enet_protocol_check_timeouts (ENetHost * host, ENetPeer * peer, ENetEvent * even
outgoingCommand -> roundTripTimeout *= 2;
- enet_list_insert (enet_list_begin (& peer -> outgoingReliableCommands),
- enet_list_remove (& outgoingCommand -> outgoingCommandList));
+ enet_list_insert (insertPosition, enet_list_remove (& outgoingCommand -> outgoingCommandList));
if (currentCommand == enet_list_begin (& peer -> sentReliableCommands) &&
! enet_list_empty (& peer -> sentReliableCommands))