From bd4545c49b4180298fabf6a20b4913568252df04 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 2 Mar 2009 13:01:21 +0000 Subject: 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 --- cpp/src/qpid/client/ConnectionImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp') 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 void ConnectionImpl::closeInternal(const F& f) { + if (heartbeatTask) { + heartbeatTask->cancel(); + } { Mutex::ScopedUnlock u(lock); connector->close(); -- cgit v1.2.1