fixed a internet card error

This commit is contained in:
Robert MacRae
2025-08-10 19:52:35 -03:00
parent 3b5fc74feb
commit 4a5b0bbb30
2 changed files with 7 additions and 3 deletions

View File

@@ -101,7 +101,11 @@ public class StreamSessionImpl extends SessionBase implements StreamSession {
state = switch (state) {
case ESTABLISHED -> TcpStates.FINISH;
case CONNECT -> TcpStates.REJECT;
default -> throw new IllegalStateException();
case FINISH, REJECT, EXPIRED -> state; // Already closing or closed
case ACCEPT -> {
LOGGER.warn("Closing session in ACCEPT state, forcing to REJECT");
yield TcpStates.REJECT;
}
};
}