diff options
| author | Gordon Sim <gsim@apache.org> | 2010-06-09 14:40:26 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-06-09 14:40:26 +0000 |
| commit | f88726b0a40ae120ac3b116be0d0a25fa4414660 (patch) | |
| tree | 6bf19462e61bd7e39af350196ef7c5c2feac1a35 /cpp/src/qpid/client/ConnectionImpl.cpp | |
| parent | fa5caaef5d4d99004b7548aed0d66e67f34649f5 (diff) | |
| download | qpid-python-f88726b0a40ae120ac3b116be0d0a25fa4414660.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/client/ConnectionImpl.cpp')
| -rw-r--r-- | cpp/src/qpid/client/ConnectionImpl.cpp | 1 |
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(); } |
