Skip to content

Commit 70ee0a8

Browse files
Remove rethrowable runtime exception during connection (#1137)
1 parent 3c2903d commit 70ee0a8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/io/nats/client/impl/NatsConnection.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,7 @@ void closeSocketImpl() {
880880
void cleanUpPongQueue() {
881881
Future<Boolean> b;
882882
while ((b = pongQueue.poll()) != null) {
883-
try {
884-
b.cancel(true);
885-
} catch (CancellationException e) {
886-
if (!b.isDone() && !b.isCancelled()) {
887-
processException(e);
888-
}
889-
}
883+
b.cancel(true);
890884
}
891885
}
892886

0 commit comments

Comments
 (0)