ARTEMIS-3459: use appropriate call to clear up, avoid creating unnecessary wrapper

This commit is contained in:
Robbie Gemmell 2021-09-03 17:20:24 +01:00
parent f82cd797cb
commit 9b074e124e
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ public abstract class AMQPMessage extends RefCountMessage implements org.apache.
}
}
} finally {
decoder.setByteBuffer(null);
decoder.setBuffer(null);
data.rewind();
}
this.messageDataScanned = MessageDataScanningStatus.SCANNED.code;