JSR-356 removing redundant try/catch
This commit is contained in:
parent
bcff9de1e7
commit
346034b44f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue