diff options
Diffstat (limited to 'seqWindow.cpp')
-rw-r--r-- | seqWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/seqWindow.cpp b/seqWindow.cpp index 9736f53..3501959 100644 --- a/seqWindow.cpp +++ b/seqWindow.cpp @@ -69,6 +69,8 @@ bool SeqWindow::hasSeqNr(sender_id_t sender, seq_nr_t seq) void SeqWindow::addSeqNr(sender_id_t sender, seq_nr_t seq) { Lock lock(mutex_); + if(sender_[sender].size() >= window_size_) + sender_[sender].pop_front(); sender_[sender].push_back(seq); } |