Skip to content

Commit

Permalink
don't do jmx stuff is not using jmx
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Snyder committed Oct 11, 2024
1 parent fcb8ce7 commit f81a235
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jgroups/stack/GossipRouter.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ public void stop() {
return;

try {
JmxConfigurator.unregister(this, Util.getMBeanServer(), "jgroups:name=GossipRouter");
if(jmx)
JmxConfigurator.unregister(this, Util.getMBeanServer(), "jgroups:name=GossipRouter");
}
catch(Exception ex) {
log.error(Util.getMessage("MBeanDeRegistrationFailed"), ex);
Expand Down

0 comments on commit f81a235

Please sign in to comment.