diff options
author | Gordon Sim <gsim@apache.org> | 2009-03-02 13:01:21 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-03-02 13:01:21 +0000 |
commit | c3c5c20d243042098e3378d672821436511b828d (patch) | |
tree | 3a79be77b798cd59d5e4b4df7030fa12ce706f43 /qpid/cpp/src | |
parent | 0ddb6e9bda913207788bd7ba4aa0fee7628bf253 (diff) | |
download | qpid-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.cpp | 3 |
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(); |