Fix function and result names

This commit is contained in:
Nonoo 2020-11-21 18:48:24 +01:00
parent 7102938893
commit 7b6194a702
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ func (s *audioStream) handleRxSeqBufEntry(e seqBufEntry) {
gotSeq := uint16(e.seq)
if s.receivedAudio {
// Out of order packets can happen if we receive a retransmitted packet, but too late.
if s.rxSeqBuf.leftOrRightCloserToSeq(e.seq, seqNum(s.lastReceivedSeq)) != left {
if s.rxSeqBuf.compareSeq(e.seq, seqNum(s.lastReceivedSeq)) != larger {
log.Debug("got out of order pkt seq #", e.seq)
return
}

View file

@ -66,7 +66,7 @@ func (s *serialStream) handleRxSeqBufEntry(e seqBufEntry) {
gotSeq := uint16(e.seq)
if s.receivedSerialData {
// Out of order packets can happen if we receive a retransmitted packet, but too late.
if s.rxSeqBuf.leftOrRightCloserToSeq(e.seq, seqNum(s.lastReceivedSeq)) != left {
if s.rxSeqBuf.compareSeq(e.seq, seqNum(s.lastReceivedSeq)) != larger {
log.Debug("got out of order pkt seq #", e.seq)
return
}