summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Cluster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r--cpp/src/qpid/cluster/Cluster.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp
index 2a73925090..73b11cf124 100644
--- a/cpp/src/qpid/cluster/Cluster.cpp
+++ b/cpp/src/qpid/cluster/Cluster.cpp
@@ -244,8 +244,7 @@ void Cluster::disconnect(sys::DispatchHandle& ) {
// FIXME aconway 2008-09-11: this should be logged as critical,
// when we provide admin option to shut down cluster and let
// members leave cleanly.
- QPID_LOG(notice, self << " disconnected from cluster " << name.str());
- broker.shutdown();
+ stopClusterNode();
}
void Cluster::configChange(
@@ -385,6 +384,8 @@ Manageable::status_t Cluster::ManagementMethod (uint32_t methodId, Args& /*args*
void Cluster::stopClusterNode(void)
{
+ QPID_LOG(notice, self << " disconnected from cluster " << name.str());
+ broker.shutdown();
}
void Cluster::stopFullCluster(void)