Refine error handling in JettyWebSocketSession

Closes gh-36891
This commit is contained in:
rstoyanchev
2026-06-22 10:42:51 +01:00
parent ad5bd67b31
commit 76089feeb4
@@ -149,7 +149,7 @@ public class JettyWebSocketSession extends AbstractWebSocketSession<Session> {
if (JettyWebSocketSession.this.handlerCompletionSink != null) {
JettyWebSocketSession.this.handlerCompletionSink.tryEmitError(error);
}
getDelegate().close(StatusCode.SERVER_ERROR, error.getMessage(), Callback.NOOP);
getDelegate().close(StatusCode.SERVER_ERROR, null, Callback.NOOP);
}
void onHandleComplete() {