Author: markt
Date: Tue Apr 23 16:34:04 2013
New Revision: 1471031
URL: http://svn.apache.org/r1471031
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54792
Application shouldn't be trying to close the session in an @onClose method.
Modified:
tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/chat/ChatAnnotation.java
Modified:
tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/chat/ChatAnnotation.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/chat/ChatAnnotation.java?rev=1471031&r1=1471030&r2=1471031&view=diff
==============================================================================
---
tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/chat/ChatAnnotation.java
(original)
+++
tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/chat/ChatAnnotation.java
Tue Apr 23 16:34:04 2013
@@ -56,12 +56,6 @@ public class ChatAnnotation {
@OnClose
public void end() {
- try {
- session.close();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
connections.remove(this);
String message = String.format("* %s %s",
nickname, "has disconnected.");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]