Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Plotnikov committed Dec 8, 2023
1 parent b4d7c32 commit 8866e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8866e45

Please sign in to comment.