From b3da6014683c101400358e15908206db83427227 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 11 Jun 2009 14:24:14 +0000 Subject: Stop timers on receiving Connection::closed() from lower levels as well as sending close() to them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783790 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp/src/qpid/broker/Connection.cpp') diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp index 8575381453..b9643a1fef 100644 --- a/cpp/src/qpid/broker/Connection.cpp +++ b/cpp/src/qpid/broker/Connection.cpp @@ -212,6 +212,10 @@ void Connection::idleOut(){} void Connection::idleIn(){} void Connection::closed(){ // Physically closed, suspend open sessions. + if (heartbeatTimer) + heartbeatTimer->cancel(); + if (timeoutTimer) + timeoutTimer->cancel(); try { while (!channels.empty()) ptr_map_ptr(channels.begin())->handleDetach(); -- cgit v1.2.1