summaryrefslogtreecommitdiff
path: root/seqWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'seqWindow.cpp')
-rw-r--r--seqWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/seqWindow.cpp b/seqWindow.cpp
index 20973b5..cf4cf1c 100644
--- a/seqWindow.cpp
+++ b/seqWindow.cpp
@@ -71,6 +71,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 (!window_size_)
+ return;
if(sender_[sender].size() >= window_size_)
sender_[sender].pop_front();
sender_[sender].push_back(seq);