Skip to content

Commit

Permalink
Remove rethrowable runtime exception during connection (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajax-surovskyi-y committed May 13, 2024
1 parent 3c2903d commit 70ee0a8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/io/nats/client/impl/NatsConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -880,13 +880,7 @@ void closeSocketImpl() {
void cleanUpPongQueue() {
Future<Boolean> b;
while ((b = pongQueue.poll()) != null) {
try {
b.cancel(true);
} catch (CancellationException e) {
if (!b.isDone() && !b.isCancelled()) {
processException(e);
}
}
b.cancel(true);
}
}

Expand Down

0 comments on commit 70ee0a8

Please sign in to comment.