diff --git a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/core/io/AbstractWebSocketConnection.java b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/core/io/AbstractWebSocketConnection.java index eb0dbaaabc9..24c49f57f22 100644 --- a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/core/io/AbstractWebSocketConnection.java +++ b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/core/io/AbstractWebSocketConnection.java @@ -142,9 +142,7 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp { CloseInfo close = new CloseInfo(statusCode,reason); FutureCallback nop = new FutureCallback<>(); - ControlFrameBytes frameBytes = new ControlFrameBytes(this,nop,null,close.asFrame()); - queue.append(frameBytes); - flush(); + output(null,nop,close.asFrame()); } public void flush()