This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 06f336b6e4 Remove duplicate leave notification
06f336b6e4 is described below
commit 06f336b6e4109b688bde1f54bde44fb2f13b2e9e
Author: Mark Thomas <[email protected]>
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 d3d9700021..84ed091b3f 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: [email protected]
For additional commands, e-mail: [email protected]