Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Plotnikov committed Nov 30, 2023
1 parent 2f1b2b7 commit 63fd7bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -2224,6 +2224,14 @@ private void disconnect(boolean graceful) throws ExecutionException, Interrupted
sendLogout();
waitLogoutResponse();
}
while (activeRecovery.get()) {
LOGGER.debug("Waiting for recovery to finish.");
try {
Thread.sleep(100);
} catch (InterruptedException e) {
LOGGER.error("Error while waiting for recovery to finish", e);
}
}
enabled.set(false);
Thread.sleep(settings.getDisconnectCleanUpTimeoutMs());
channel.close().get();
Expand Down

0 comments on commit 63fd7bd

Please sign in to comment.