diff --git a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java index c9eeedb6f90..460d1d73b54 100644 --- a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java +++ b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/WebSocketSession.java @@ -342,7 +342,7 @@ public class WebSocketSession extends ContainerLifeCycle implements Session, Inc { switch (state) { - case CLOSED: + case CLOSING: // notify session listeners for (SessionListener listener : sessionListeners) { @@ -355,7 +355,8 @@ public class WebSocketSession extends ContainerLifeCycle implements Session, Inc LOG.ignore(t); } } - + break; + case CLOSED: IOState ioState = this.connection.getIOState(); CloseInfo close = ioState.getCloseInfo(); // confirmed close of local endpoint