re-adding code accidently removed

This commit is contained in:
Andy Taylor 2016-04-27 07:26:55 +01:00
parent eb75a69bce
commit 1530ea3032
1 changed files with 4 additions and 0 deletions

View File

@ -304,6 +304,10 @@ public class ProtonSessionIntegrationCallback implements AMQPSessionCallback, Se
EncodedMessage encodedMessage = new EncodedMessage(messageFormat, messageEncoded.array(), messageEncoded.arrayOffset(), messageEncoded.writerIndex());
ServerMessage message = manager.getConverter().inbound(encodedMessage);
//use the address on the receiver if not null, if null let's hope it was set correctly on the message
if (address != null) {
message.setAddress(new SimpleString(address));
}
recoverContext();