This closes #760

This commit is contained in:
Clebert Suconic 2016-09-08 09:27:36 -04:00
commit a7cac9ba5c
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 {