Skip to content

Commit

Permalink
ARTEMIS-715 messages could be sent to wrong queue
Browse files Browse the repository at this point in the history
In rare circumstances MessageProducer can send a message
to wrong queue
  • Loading branch information
treblereel authored and clebertsuconic committed Sep 8, 2016
1 parent 12716a3 commit 62f90ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ private void doSend(SimpleString sendingAddress,
}
else {
sendRegularMessage(msgI, sendBlocking, theCredits, handler);
session.checkDefaultAddress(sendingAddress);
}
}
finally {
Expand All @@ -291,6 +290,8 @@ private void sendRegularMessage(final MessageInternal msgI,

theCredits.acquireCredits(creditSize);

session.checkDefaultAddress(address);

sessionContext.sendFullMessage(msgI, sendBlocking, handler, address);
}

Expand Down

0 comments on commit 62f90ea

Please sign in to comment.