From ca057c0dac460d050d903476fd9004869cc1216a 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@783790 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/Connection.cpp b/qpid/cpp/src/qpid/broker/Connection.cpp index 8575381453..b9643a1fef 100644 --- a/qpid/cpp/src/qpid/broker/Connection.cpp +++ b/qpid/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