From 6f50b6eea1c7ca9f84a72b7171c0fe691d5510fc Mon Sep 17 00:00:00 2001 From: Denis Plotnikov Date: Mon, 8 Jan 2024 12:40:09 +0400 Subject: [PATCH] fix --- .../kotlin/com/exactpro/th2/conn/dirty/fix/MessageLoader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/MessageLoader.kt b/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/MessageLoader.kt index 75e5ba1..c87112b 100644 --- a/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/MessageLoader.kt +++ b/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/MessageLoader.kt @@ -156,7 +156,7 @@ class MessageLoader( val buf = Unpooled.copiedBuffer(message.bodyRaw.toByteArray()) val sequence = buf.findField(MSG_SEQ_NUM_TAG)?.value?.toInt() ?: continue - if(sequence == 1 && lastProcessedSequence > 1 || sequence == 2 && lastProcessedSequence > 2) { + if(sequence > 1 && lastProcessedSequence == 1 || sequence > 2 && lastProcessedSequence == 2) { skipRetransmission = true return@withCancellation }