Skip to content

Commit

Permalink
Use the outgoing split sequence number for every outgoing packet (#4864)
Browse files Browse the repository at this point in the history
(instead of the last incoming sequence number...)

Fixes #4848
  • Loading branch information
Rogier-5 authored and nerzhul committed Dec 29, 2016
1 parent e509ead commit abd68d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/connection.cpp
Expand Up @@ -1237,7 +1237,7 @@ void UDPPeer::RunCommandQueues(
u16 UDPPeer::getNextSplitSequenceNumber(u8 channel)
{
assert(channel < CHANNEL_COUNT); // Pre-condition
return channels[channel].readNextIncomingSeqNum();
return channels[channel].readNextSplitSeqNum();
}

void UDPPeer::setNextSplitSequenceNumber(u8 channel, u16 seqnum)
Expand Down

0 comments on commit abd68d3

Please sign in to comment.