diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-06-11 14:24:21 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-06-11 14:24:21 +0000 |
| commit | 6835c57ff0fcb1ad662f3bedd5e67a59fa9a1e50 (patch) | |
| tree | 8a5940a0b5d98a4e9b57f17214c4676c57fdf808 /qpid/cpp | |
| parent | ca057c0dac460d050d903476fd9004869cc1216a (diff) | |
| download | qpid-python-6835c57ff0fcb1ad662f3bedd5e67a59fa9a1e50.tar.gz | |
Don't start the broker Connection heartbeat timers if the
connection isn't a local connection.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@783791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/Connection.cpp b/qpid/cpp/src/qpid/broker/Connection.cpp index b9643a1fef..a57b59ae2c 100644 --- a/qpid/cpp/src/qpid/broker/Connection.cpp +++ b/qpid/cpp/src/qpid/broker/Connection.cpp @@ -353,7 +353,7 @@ void Connection::abort() void Connection::setHeartbeatInterval(uint16_t heartbeat) { setHeartbeat(heartbeat); - if (heartbeat > 0) { + if (heartbeat > 0 && !isShadow()) { heartbeatTimer = new ConnectionHeartbeatTask(heartbeat, timer, *this); timer.add(heartbeatTimer); timeoutTimer = new ConnectionTimeoutTask(heartbeat, timer, *this); |
