diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-06-11 14:24:14 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-06-11 14:24:14 +0000 |
| commit | b3da6014683c101400358e15908206db83427227 (patch) | |
| tree | 7a592610aa0195a30a856f798a3e4b31cd1f27d2 /cpp/src | |
| parent | b2838cde6c363bdd3dae72e54768f9c510afd994 (diff) | |
| download | qpid-python-b3da6014683c101400358e15908206db83427227.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/qpid@783790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/broker/Connection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |
