ARTEMIS-715 messages could be sent to wrong queue

In rare circumstances MessageProducer can send a message
to wrong queue
This commit is contained in:
Dmitrii Tikhomirov 2016-09-07 16:24:12 +02:00 committed by Clebert Suconic
parent 12716a3e8f
commit 62f90eaf81
1 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,6 @@ public class ClientProducerImpl implements ClientProducerInternal {
}
else {
sendRegularMessage(msgI, sendBlocking, theCredits, handler);
session.checkDefaultAddress(sendingAddress);
}
}
finally {
@ -291,6 +290,8 @@ public class ClientProducerImpl implements ClientProducerInternal {
theCredits.acquireCredits(creditSize);
session.checkDefaultAddress(address);
sessionContext.sendFullMessage(msgI, sendBlocking, handler, address);
}