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:
parent
12716a3e8f
commit
62f90eaf81
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue