From 8866e45a620b4cd3cd83aa9d1e1ab7329cb3e8fd Mon Sep 17 00:00:00 2001 From: Denis Plotnikov Date: Fri, 8 Dec 2023 19:48:06 +0400 Subject: [PATCH] fix --- src/main/java/com/exactpro/th2/FixHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/exactpro/th2/FixHandler.java b/src/main/java/com/exactpro/th2/FixHandler.java index ae9bdb1..8a1d1a3 100644 --- a/src/main/java/com/exactpro/th2/FixHandler.java +++ b/src/main/java/com/exactpro/th2/FixHandler.java @@ -1145,6 +1145,8 @@ public void sendLogon() { return; } + activeLogonExchange.set(true); + if(enabled.get()) { String message = String.format("Logon attempt while already logged in: %s - %s", channel.getSessionGroup(), channel.getSessionAlias()); LOGGER.warn(message); @@ -1190,8 +1192,6 @@ public void sendLogon() { return Unit.INSTANCE; }); - activeLogonExchange.set(true); - setChecksumAndBodyLength(logon); LOGGER.info("Send logon - {}", logon); channel.send(Unpooled.wrappedBuffer(logon.toString().getBytes(StandardCharsets.UTF_8)), props, null, SendMode.HANDLE_AND_MANGLE)