Skip to content

Commit

Permalink
ARTEMIS-4125 Fixing AutoCreate Topics remove of the address
Browse files Browse the repository at this point in the history
This is fixing AutoCreateJmsDestinationTest::testAutoCreateOnSubscribeToTopic
  • Loading branch information
clebertsuconic authored and jbertram committed Jan 12, 2023
1 parent add0000 commit c231e6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,8 @@ private void run() {
return;
}
logger.debug("deleting temporary queue {}", bindingName);
server.destroyQueue(bindingName, null, false, false, server.getAddressInfo(binding.getAddress()).isTemporary());
AddressInfo addressInfo = server.getAddressInfo(binding.getAddress());
server.destroyQueue(bindingName, null, false, false, addressInfo == null || addressInfo.isTemporary() || addressInfo.isAutoCreated());
if (observer != null) {
observer.tempQueueDeleted(bindingName);
}
Expand Down

0 comments on commit c231e6a

Please sign in to comment.