Author: markt Date: Tue Oct 8 22:31:52 2013 New Revision: 1530448 URL: http://svn.apache.org/r1530448 Log: Move comment to go with code that was moved earlier
Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java?rev=1530448&r1=1530447&r2=1530448&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java Tue Oct 8 22:31:52 2013 @@ -92,11 +92,6 @@ public class WsRemoteEndpointImplServer if (close) { close(); } - // Setting the result marks this (partial) message as - // complete which means the next one may be sent which - // could update the value of the handler. Therefore, keep a - // local copy before signalling the end of the (partial) - // message. clearHandler(null); break; } @@ -150,6 +145,11 @@ public class WsRemoteEndpointImplServer private void clearHandler(Throwable t) { + // Setting the result marks this (partial) message as + // complete which means the next one may be sent which + // could update the value of the handler. Therefore, keep a + // local copy before signalling the end of the (partial) + // message. SendHandler sh = handler; handler = null; if (sh != null) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org