From 6835c57ff0fcb1ad662f3bedd5e67a59fa9a1e50 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@783791 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') 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); -- cgit v1.2.1