ARTEMIS-719 Send ampq:not-found properly on remote open

This commit is contained in:
Martyn Taylor 2016-09-08 11:42:01 +01:00 committed by Clebert Suconic
parent c1c20a74f7
commit b788ffac22
1 changed files with 1 additions and 2 deletions

View File

@ -164,8 +164,7 @@ public class ProtonServerSenderContext extends AbstractProtonContextSender imple
sender.setSource(source);
}
else {
sender.setCondition(new ErrorCondition(AmqpError.NOT_FOUND, "Unknown subscription link: " + sender.getName()));
sender.close();
throw new ActiveMQAMQPNotFoundException("Unknown subscription link: " + sender.getName());
}
}
else {