diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2011-05-04 22:55:32 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2011-05-04 22:55:32 +0000 |
commit | 43fcc9d7f365439b7be269dd8f1307211eafd967 (patch) | |
tree | 4fa32fcbc132cdc997d0477384021d3f485a4a2f | |
parent | fcd3927587ec004a54e9e92bc7d23f7e404836be (diff) | |
download | qpid-python-43fcc9d7f365439b7be269dd8f1307211eafd967.tar.gz |
QPID-3245
The ack fusher task is now cancelled when the session is closed due to an error received from the broker.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099634 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java index 851c22f847..1ea92c67f7 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java @@ -918,6 +918,11 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic try { super.closed(null); + if (flushTask != null) + { + flushTask.cancel(); + flushTask = null; + } } catch (Exception e) { _logger.error("Error closing JMS session", e); |