diff options
-rw-r--r-- | seqWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/seqWindow.cpp b/seqWindow.cpp index 3501959..28227d9 100644 --- a/seqWindow.cpp +++ b/seqWindow.cpp @@ -54,6 +54,8 @@ SeqWindow::SeqDeque::size_type SeqWindow::getLength(sender_id_t sender) bool SeqWindow::hasSeqNr(sender_id_t sender, seq_nr_t seq) { Lock lock(mutex_); + if (!window_size_) + return false; SenderMap::const_iterator s = sender_.find(sender); if(s == sender_.end()) return false; |