Skip to content

Commit 9317d48

Browse files
committed
Handle AssertionError in conn error dispatching
References #237
1 parent 4e57202 commit 9317d48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ protected void dispatchIoErrorToConnection(final SocketChannelFrameHandlerState
280280

281281
@Override
282282
public void run() {
283-
state.getConnection().handleIoError(ex);
283+
try {
284+
state.getConnection().handleIoError(ex);
285+
} catch(AssertionError e) {
286+
LOGGER.warn("Assertion error during error dispatching to connection: " + e.getMessage());
287+
}
284288
}
285289
};
286290
if (executorService() == null) {

0 commit comments

Comments
 (0)