Skip to content

Commit 4e57202

Browse files
Merge pull request #238 from rabbitmq/rabbitmq-java-client-237
Handle AssertionError in NioLoop
2 parents 0a8a947 + 0e60f7b commit 4e57202

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/rabbitmq/client/impl/nio/NioLoop.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public void run() {
7878
state.getConnection().handleHeartbeatFailure();
7979
} catch (Exception e) {
8080
LOGGER.warn("Error after heartbeat failure of connection {}", state.getConnection());
81+
} catch (AssertionError e) {
82+
// see https://github.com/rabbitmq/rabbitmq-java-client/issues/237
83+
LOGGER.warn("Assertion error after heartbeat failure of connection {}", state.getConnection());
8184
} finally {
8285
selectionKey.cancel();
8386
}

0 commit comments

Comments
 (0)