Author: markt
Date: Mon Mar 25 09:40:02 2013
New Revision: 1460565
URL: http://svn.apache.org/r1460565
Log:
Return once a match has been found else an error will occur.
Modified:
tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java
Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java?rev=1460565&r1=1460564&r2=1460565&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java Mon Mar 25
09:40:02 2013
@@ -207,10 +207,13 @@ public class WsSession implements Sessio
}
if (listener.equals(textMessageHandler)) {
textMessageHandler = null;
+ return;
} else if (listener.equals(binaryMessageHandler)) {
binaryMessageHandler = null;
+ return;
} else if (listener.equals(pongMessageHandler)) {
pongMessageHandler = null;
+ return;
}
// ISE for now. Could swallow this silently / log this if the ISE
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]