diff options
| author | Gordon Sim <gsim@apache.org> | 2006-10-12 10:04:53 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2006-10-12 10:04:53 +0000 |
| commit | 0fa9f4026bade25610d8dbb697a52ccb821aef16 (patch) | |
| tree | ef9c5bec5471cc4fa3265104173aa5619995b5f9 | |
| parent | 7a8359b48b9f8074d9b5e0ca3e44abef4d26d690 (diff) | |
| download | qpid-python-0fa9f4026bade25610d8dbb697a52ccb821aef16.tar.gz | |
Fixed bug causing ChannelTest.testDeliveryNoAck to fail intermittently.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@463179 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/broker/src/Channel.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/broker/test/ChannelTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/broker/src/Channel.cpp b/qpid/cpp/broker/src/Channel.cpp index 7bc6d599e9..34d69716c4 100644 --- a/qpid/cpp/broker/src/Channel.cpp +++ b/qpid/cpp/broker/src/Channel.cpp @@ -124,7 +124,7 @@ Channel::ConsumerImpl::ConsumerImpl(Channel* _parent, string& _tag, } bool Channel::ConsumerImpl::deliver(Message::shared_ptr& msg){ - if(connection != msg->getPublisher()){//check for no_local + if(!connection || connection != msg->getPublisher()){//check for no_local if(ackExpected && !parent->checkPrefetch(msg)){ blocked = true; }else{ diff --git a/qpid/cpp/broker/test/ChannelTest.cpp b/qpid/cpp/broker/test/ChannelTest.cpp index 45498989f2..001a0d9c00 100644 --- a/qpid/cpp/broker/test/ChannelTest.cpp +++ b/qpid/cpp/broker/test/ChannelTest.cpp @@ -108,7 +108,7 @@ class ChannelTest : public CppUnit::TestCase msg->addContent(body); Queue::shared_ptr queue(new Queue("my_queue")); - ConnectionToken* owner; + ConnectionToken* owner(0); string tag("no_ack"); channel.consume(tag, queue, false, false, owner); |
