This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new a8c4b9c27a Remove duplicate leave notification
a8c4b9c27a is described below

commit a8c4b9c27a20e1527b4bf3afe537a6d01bb9fb4f
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 1 17:16:06 2024 +0100

    Remove duplicate leave notification
    
    session.close() will trigger onClose() exactly once
---
 webapps/examples/WEB-INF/classes/websocket/snake/SnakeAnnotation.java | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/webapps/examples/WEB-INF/classes/websocket/snake/SnakeAnnotation.java 
b/webapps/examples/WEB-INF/classes/websocket/snake/SnakeAnnotation.java
index 7f14ab8cca..37b1cf9626 100644
--- a/webapps/examples/WEB-INF/classes/websocket/snake/SnakeAnnotation.java
+++ b/webapps/examples/WEB-INF/classes/websocket/snake/SnakeAnnotation.java
@@ -120,7 +120,6 @@ public class SnakeAnnotation {
          * Assume all errors are fatal. Close the session and remove the snake 
from the game.
          */
         session.close();
-        onClose();
         /*
          * Correct action depends on root cause. Protect against infinite 
loops while looking for root cause.
          */


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to