From 8fc3158850c68333619f27e6d22101a3c71196d6 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 11 Jun 2009 14:24:21 +0000 Subject: 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 --- cpp/src/qpid/broker/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') 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); -- cgit v1.2.1