be strict about the first seq being 0

otherwise if first 2 messages are delivered in reverse order,
the queue gets blocked
This commit is contained in:
Bruno Windels 2023-02-07 14:42:44 +01:00
parent cadeae98bc
commit 39e9a43a1b

View File

@ -84,7 +84,7 @@ class MemberConnection {
return true;
}
if (this.lastProcessedSeqNr === undefined) {
return true;
return firstSeq === 0;
}
// allow messages with both a seq we've just seen and
// the next one to be dequeued as it can happen