summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/cluster/ClusterPlugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/ClusterPlugin.cpp b/cpp/src/qpid/cluster/ClusterPlugin.cpp
index 1bebbe7a43..cb1212505b 100644
--- a/cpp/src/qpid/cluster/ClusterPlugin.cpp
+++ b/cpp/src/qpid/cluster/ClusterPlugin.cpp
@@ -160,9 +160,10 @@ struct ClusterPlugin : public Plugin {
void initialize(Plugin::Target& target) {
Broker* broker = dynamic_cast<Broker*>(&target);
- disallowManagementMethods(broker->getManagementAgent());
- if (broker && cluster)
+ if (broker && cluster) {
+ disallowManagementMethods(broker->getManagementAgent());
cluster->initialize();
+ }
}
};