Skip to content

Commit

Permalink
WebSocket: This should be handled already...
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Nov 24, 2024
1 parent bd15872 commit 50568fd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public WebSocketClient(@NonNull URI uri) {
}

public WebSocketClient(@NonNull URI uri, @NonNull Map<String, String> additionalHeaders, @NonNull List<String> acceptedProtocols) {

String httpHost = uri.getHost();
int port;

Expand Down Expand Up @@ -137,7 +136,7 @@ private void doPing(long timeout) {
}
}

private void doRead() {
private void doRead() throws IOException {
try (Socket _s = this.socket) {
// For continuation frames.
int fragmentedOpCode = 0;
Expand Down Expand Up @@ -279,8 +278,6 @@ private void doRead() {
continue;
}
}
} catch (Throwable t) {
t.printStackTrace();
} finally {
this.pingThread.interrupt();
}
Expand Down

0 comments on commit 50568fd

Please sign in to comment.