Skip to content

Commit

Permalink
Correct web socket closing: removing unnecessary web socket closing i…
Browse files Browse the repository at this point in the history
…n case of error handling
  • Loading branch information
serpion committed Mar 25, 2022
1 parent 569884f commit d00a606
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/java_websocket/server/WebSocketServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d00a606

Please sign in to comment.