summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-06-11 14:24:14 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-06-11 14:24:14 +0000
commitca057c0dac460d050d903476fd9004869cc1216a (patch)
treea45574938ccb632060ad9f4aeccdacb9a1723c3a /qpid/cpp
parentc379fbaadb80667779985d0b3108f8297e5b5c0d (diff)
downloadqpid-python-ca057c0dac460d050d903476fd9004869cc1216a.tar.gz
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
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/broker/Connection.cpp4
1 files changed, 4 insertions, 0 deletions
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();