diff --git a/src/main/java/org/java_websocket/server/WebSocketServer.java b/src/main/java/org/java_websocket/server/WebSocketServer.java index 3641c4ce..bb8178c2 100644 --- a/src/main/java/org/java_websocket/server/WebSocketServer.java +++ b/src/main/java/org/java_websocket/server/WebSocketServer.java @@ -1089,9 +1089,6 @@ public void run() { } catch (InterruptedException e) { Thread.currentThread().interrupt(); } catch (VirtualMachineError | ThreadDeath | LinkageError e) { - if (ws != null) { - ws.close(); - } log.error("Got fatal error in worker thread {}", getName()); Exception exception = new Exception(e); handleFatal(ws, exception);