mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 01:30:23 +02:00
clear the pending received messages on handshake receive
This commit is contained in:
parent
54f2dc54f6
commit
d5e77ba907
1 changed files with 3 additions and 2 deletions
|
@ -650,8 +650,6 @@ void Connection::processTimeoutNAK(std::unique_ptr<ControlPacket> controlPacket)
|
|||
}
|
||||
|
||||
void Connection::resetReceiveState() {
|
||||
// TODO: this should also reset any queued messages we might be processing
|
||||
|
||||
// reset all SequenceNumber member variables back to default
|
||||
SequenceNumber defaultSequenceNumber;
|
||||
|
||||
|
@ -680,6 +678,9 @@ void Connection::resetReceiveState() {
|
|||
|
||||
// clear the intervals in the receive window
|
||||
_receiveWindow.reset();
|
||||
|
||||
// clear any pending received messages
|
||||
_pendingReceivedMessages.clear();
|
||||
}
|
||||
|
||||
void Connection::updateRTT(int rtt) {
|
||||
|
|
Loading…
Reference in a new issue