diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2008-02-14 02:09:59 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2008-02-14 02:09:59 +0000 |
| commit | b4726d0d86e0ddfd4a6576a7cee53b3207e6a438 (patch) | |
| tree | 233a7eec617119dd840e1a23a6525868c26b9e65 /qpid/java/client | |
| parent | e5c41f4bf321f5531c1ea8c7d16d2ff6d0100c0d (diff) | |
| download | qpid-python-b4726d0d86e0ddfd4a6576a7cee53b3207e6a438.tar.gz | |
Fix for Qpid-793
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@627634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer.java b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer.java index d9d91f1ebe..cfb4b2053e 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer.java @@ -523,11 +523,13 @@ public abstract class BasicMessageConsumer<H, B> extends Closeable implements Me { // //fixme this probably is not right // if (!isNoConsume()) - { // done in BasicCancelOK Handler but not sending one so just deregister. - deregisterConsumer(); - } + //{ // done in BasicCancelOK Handler but not sending one so just deregister. + // deregisterConsumer(); + //} } + deregisterConsumer(); + if (_messageListener != null && _receiving.get() && _receivingThread != null) { if (_logger.isInfoEnabled()) @@ -1011,7 +1013,7 @@ public abstract class BasicMessageConsumer<H, B> extends Closeable implements Me this._queuename = queuename; } - public void addBindingKey(AMQDestination amqd, String routingKey) throws AMQException + public void addBindingKey(AMQDestination amqd, String routingKey) throws AMQException { _session.addBindingKey(this,amqd,routingKey); } |
