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 | 8fc3158850c68333619f27e6d22101a3c71196d6 (patch) | |
| tree | b880a607b49c43b3d9f27939087a3e3a4b37c6f7 /cpp/src | |
| parent | b3da6014683c101400358e15908206db83427227 (diff) | |
| download | qpid-python-8fc3158850c68333619f27e6d22101a3c71196d6.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/qpid@783791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/broker/Connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp index b9643a1fef..a57b59ae2c 100644 --- a/cpp/src/qpid/broker/Connection.cpp +++ b/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); |
