diff --git a/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/WebSocketChatServlet.java b/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/WebSocketChatServlet.java index 03671464aa5..ab99aacfc97 100644 --- a/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/WebSocketChatServlet.java +++ b/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/WebSocketChatServlet.java @@ -106,14 +106,7 @@ public class WebSocketChatServlet extends WebSocketServlet implements WebSocketC { if (data.contains("disconnect")) { - try - { - session.close(); - } - catch (IOException ignore) - { - // ignore - } + session.close(); return; }