summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-03-02 13:01:21 +0000
committerGordon Sim <gsim@apache.org>2009-03-02 13:01:21 +0000
commitc3c5c20d243042098e3378d672821436511b828d (patch)
tree3a79be77b798cd59d5e4b4df7030fa12ce706f43 /qpid/cpp/src
parent0ddb6e9bda913207788bd7ba4aa0fee7628bf253 (diff)
downloadqpid-python-c3c5c20d243042098e3378d672821436511b828d.tar.gz
QPID-1705: cancel heartbeat timer task as part of cleanup
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@749297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/client/ConnectionImpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/client/ConnectionImpl.cpp b/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
index 8e27d78479..745bdb63b5 100644
--- a/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
+++ b/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
@@ -180,6 +180,9 @@ void ConnectionImpl::close()
template <class F> void ConnectionImpl::closeInternal(const F& f) {
+ if (heartbeatTask) {
+ heartbeatTask->cancel();
+ }
{
Mutex::ScopedUnlock u(lock);
connector->close();