Skip to content

Commit 7187585

Browse files
[issue-1001] fix: abort message resend on send failure
The `resendMessages` method was updated to properly abort the message resend process when a send operation fails by implementing a break statement, thus addressing the test issue where the expected messages sent count did not match the actual count. However, the project build failed due to unresolved dependencies, preventing the verification of changes through testing.
1 parent 8e253ac commit 7187585

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickfixj-core/src/main/java/quickfix/Session.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,7 @@ private void resendMessages(Message receivedMessage, int beginSeqNo, int endSeqN
24102410
if (!send(msg.toString())) {
24112411
getLog().onErrorEvent("Failed to send resend message: " + msgSeqNum + ", aborting resend process");
24122412
sendFailed = true;
2413+
break; // Exit the loop immediately
24132414
} else {
24142415
begin = 0;
24152416
appMessageJustSent = true;

0 commit comments

Comments
 (0)