Author: markt Date: Sun Mar 17 19:24:33 2013 New Revision: 1457528 URL: http://svn.apache.org/r1457528 Log: Follow up to r1457515
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=1457528&r1=1457527&r2=1457528&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java (original) +++ tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java Sun Mar 17 19:24:33 2013 @@ -322,11 +322,7 @@ public class WsSession implements Sessio state = State.CLOSED; if (sendCloseMessage) { - try { - sendCloseMessage(closeReason); - } catch (IOException ioe) { - log.error(sm.getString("wsSession.sendCloseFail"), ioe); - } + sendCloseMessage(closeReason); } // Close the socket @@ -335,7 +331,7 @@ public class WsSession implements Sessio } - private void sendCloseMessage(CloseReason closeReason) throws IOException { + private void sendCloseMessage(CloseReason closeReason) { // 125 is maximum size for the payload of a control message ByteBuffer msg = ByteBuffer.allocate(125); msg.putShort((short) closeReason.getCloseCode().getCode()); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org