Skip to content

Commit 5db3e69

Browse files
authored
Merge pull request #1056 from the-thing/remove-closed
Remove unnecessary `IoSession.close()` for session that is already closed
2 parents cfecd49 + a889208 commit 5db3e69

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

quickfixj-core/src/main/java/quickfix/mina/AbstractIoHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public void sessionClosed(IoSession ioSession) {
127127
throw e;
128128
} finally {
129129
ioSession.removeAttribute(SessionConnector.QF_SESSION);
130-
ioSession.closeOnFlush();
131130
}
132131
}
133132

quickfixj-core/src/main/java/quickfix/mina/initiator/InitiatorProxyIoHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void sessionCreated(IoSession session) throws Exception {
3636
}
3737

3838
@Override
39-
public void sessionClosed(IoSession ioSession) throws Exception {
39+
public void sessionClosed(IoSession ioSession) {
4040
this.initiatorIoHandler.sessionClosed(ioSession);
4141
}
4242

0 commit comments

Comments
 (0)