watchtower/wtdb+wtserver: allow retransmission of last update

This commit is contained in:
Conner Fromknecht committed 2019-03-15 02:33:06 -07:00
1 parent 81497eceaf
commit 8b0cc487f0
2 files changed
+35 -3

No files matched your search

+1 -1
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
}