This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 5615d059e8 Simplify
5615d059e8 is described below
commit 5615d059e854929c212e657fefc57fa067b4af41
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Sep 3 11:00:54 2026 +0100
Simplify
---
.../tomcat/websocket/server/WsRemoteEndpointImplServer.java | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git
a/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
b/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
index c0bd087140..9322848992 100644
--- a/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
+++ b/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
@@ -313,13 +313,11 @@ public class WsRemoteEndpointImplServer extends
WsRemoteEndpointImplBase {
@Override
protected void doClose() {
- if (handler != null) {
- // close() can be triggered by a wide range of scenarios. It is far
- // simpler just to always use a dispatch than it is to try and
track
- // whether or not this method was called by the same thread that
- // triggered the write
- clearHandler(new EOFException(), true);
- }
+ /*
+ * close() can be triggered by a wide range of scenarios. It is far
simpler just to always use a dispatch than
+ * it is to try and track whether or not this method was called by the
same thread that triggered the write
+ */
+ clearHandler(new EOFException(), true);
try {
socketWrapper.close();
} catch (Exception e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]