Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion quickfixj-core/src/main/java/quickfix/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1986,11 +1986,12 @@ public void disconnect(String reason, boolean logError) throws IOException {

stateListener.onLogout();
}
} finally {
// QFJ-457 now enabled again if acceptor
if (!state.isInitiator()) {
setEnabled(true);
}
} finally {
state.setLogonReceived(false);
state.setLogonSent(false);
state.setLogoutSent(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public void testConnector() throws Exception {

assertTrue(session.isEnabled());
connector.logoutAllSessions(true);
assertFalse(session.isEnabled());
// Acceptors should get re-enabled after Logout
assertTrue(session.isEnabled());

assertEquals(9999, connector.getIntSetting(Acceptor.SETTING_SOCKET_ACCEPT_PORT));

Expand Down