Skip to content

Commit

Permalink
Merge #3542 into 2.0.0-M4
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Dec 11, 2024
2 parents c3430fd + 6e3c173 commit f7f7e25
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,9 @@ protected final boolean markSentHeaderAndBody(Object... objectsToRelease) {

@Override
protected final String initShortId() {
if (connection() instanceof AtomicLong atomicLong) {
return channel().id().asShortText() + '-' + atomicLong.incrementAndGet();
Connection connection = connection();
if (connection instanceof AtomicLong) {
return connection.channel().id().asShortText() + '-' + ((AtomicLong) connection).incrementAndGet();
}
return super.initShortId();
}
Expand Down

0 comments on commit f7f7e25

Please sign in to comment.