Skip to content

Commit

Permalink
Websocket: Actually, this can go.
Browse files Browse the repository at this point in the history
Already handled :)
  • Loading branch information
e3ndr committed Jan 26, 2025
1 parent eb5082f commit 4ec2972
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void connect(long timeout, long pingInterval) throws IOException {
this.client.listener.onOpen(this.client, headers, acceptedProtocol);

this.pingThread = this.client.threadFactory.newThread(() -> {
try (Socket _s = this.socket) {
try {
this.writer.doPingLoop(pingInterval);
} catch (Throwable ignored) {} finally {
this.close();
Expand All @@ -148,7 +148,7 @@ void connect(long timeout, long pingInterval) throws IOException {
this.pingThread.start();

this.readThread = this.client.threadFactory.newThread(() -> {
try (Socket _s = this.socket) {
try {
this.reader.doReadLoop();
} catch (Throwable ignored) {} finally {
this.close();
Expand Down

0 comments on commit 4ec2972

Please sign in to comment.