diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-08-27 21:02:11 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-08-27 21:02:11 +0000 |
| commit | 580b72becb3dc09b17fa5a887169a5e1a45348ff (patch) | |
| tree | 6a4c83a5ea7f5b04d23aa0e859ecb4e3c325bdc7 /cpp/src/qpid/broker/BrokerChannel.cpp | |
| parent | d52cb3fdccb2c18fa91c8331b4a09e4ea032ff1c (diff) | |
| download | qpid-python-580b72becb3dc09b17fa5a887169a5e1a45348ff.tar.gz | |
- perf clean up.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@570243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/BrokerChannel.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/BrokerChannel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/BrokerChannel.cpp b/cpp/src/qpid/broker/BrokerChannel.cpp index 11d8db73f8..9712b3903f 100644 --- a/cpp/src/qpid/broker/BrokerChannel.cpp +++ b/cpp/src/qpid/broker/BrokerChannel.cpp @@ -346,7 +346,9 @@ void Channel::route(Message::shared_ptr msg, Deliverable& strategy) { cacheExchange = connection.broker.getExchanges().get(routeToExchangeName); } - assert(cacheExchange.get()); + if (!cacheExchange.get() ) + throw ChannelException(404, "Exchange not found '" + routeToExchangeName + "'"); + cacheExchange->route(strategy, msg->getRoutingKey(), &(msg->getApplicationHeaders())); if (!strategy.delivered) { |
