Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
poutsma committed Jul 26, 2023
1 parent 55b3d35 commit a766eee
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -187,13 +187,9 @@ public PooledDataBuffer retain() {
@Override
public boolean release() {
if (this.delegate instanceof PooledDataBuffer pooledDelegate) {
if (!pooledDelegate.release()) {
return false;
}
}
if (!this.chunk.release()) {
return false;
pooledDelegate.release();
}
this.chunk.release();
int refCount = this.refCount.updateAndGet(c -> {
if (c != 0) {
return c - 1;
Expand Down

0 comments on commit a766eee

Please sign in to comment.