watchtower/wtdb+wtserver: allow retransmission of last update

This commit is contained in:
Conner Fromknecht
2019-03-15 02:33:05 -07:00
parent 81497eceaf
commit 8b0cc487f0
2 changed files with 35 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ func (s *SessionInfo) AcceptUpdateSequence(seqNum, lastApplied uint16) error {
return ErrSessionConsumed
// Client update does not match our expected next seqnum.
case seqNum != s.LastApplied+1:
case seqNum != s.LastApplied && seqNum != s.LastApplied+1:
return ErrUpdateOutOfOrder
}