summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-06-09 14:40:26 +0000
committerGordon Sim <gsim@apache.org>2010-06-09 14:40:26 +0000
commita2d87cb4198266051149b21a2f0f7621a29c5d9d (patch)
tree6bf19462e61bd7e39af350196ef7c5c2feac1a35 /cpp/src/qpid
parent077b8b25ab7fac22daf8494feb125cd5c73b95ac (diff)
downloadqpid-python-a2d87cb4198266051149b21a2f0f7621a29c5d9d.tar.gz
Ensure heartbeat task is cancelled before ConnectionImpl it refers to is deleted
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953032 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid')
-rw-r--r--cpp/src/qpid/client/ConnectionImpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp
index 8848554c94..397bd4e39b 100644
--- a/cpp/src/qpid/client/ConnectionImpl.cpp
+++ b/cpp/src/qpid/client/ConnectionImpl.cpp
@@ -198,6 +198,7 @@ ConnectionImpl::ConnectionImpl(framing::ProtocolVersion v, const ConnectionSetti
const uint16_t ConnectionImpl::NEXT_CHANNEL = std::numeric_limits<uint16_t>::max();
ConnectionImpl::~ConnectionImpl() {
+ if (heartbeatTask) heartbeatTask->cancel();
theIO().sub();
}