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

(cherry picked from commit 62f90ea)
  • Loading branch information
treblereel committed Sep 8, 2016
1 parent 04acde0 commit 999c4db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ private void doSend(SimpleString sendingAddress,
}
else {
sendRegularMessage(msgI, sendBlocking, theCredits, handler);
session.checkDefaultAddress(sendingAddress);
}
}
finally {
Expand All @@ -280,6 +279,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 999c4db

Please sign in to comment.