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 | bd4545c49b4180298fabf6a20b4913568252df04 (patch) | |
tree | 1b396a87e78322273e6b3e495f69f52c3ee81cfd /cpp/src | |
parent | f0741a17b9e9a647418be6d4f1f17e7208762ec9 (diff) | |
download | qpid-python-bd4545c49b4180298fabf6a20b4913568252df04.tar.gz |
QPID-1705: cancel heartbeat timer task as part of cleanup
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/client/ConnectionImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index 8e27d78479..745bdb63b5 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/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(); |