Skip to content

Commit

Permalink
WebSocket: Name the threads we use :D
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Nov 23, 2024
1 parent 10cf5b3 commit d4647a1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ public void connect() throws IOException {
this.state = State.CONNECTED;

this.pingThread = this.threadFactory.newThread(this::doPing);
this.pingThread.setName("WebSocket Client Ping Thread - " + this.address);
this.pingThread.start();

this.readThread = this.threadFactory.newThread(() -> {
Expand All @@ -342,6 +343,7 @@ public void connect() throws IOException {
this.close();
}
});
this.readThread.setName("WebSocket Client Read Thread - " + this.address);
this.readThread.start();
} catch (IOException e) {
this.state = State.CLOSED;
Expand Down

0 comments on commit d4647a1

Please sign in to comment.