Skip to content

Commit

Permalink
Fix query listener reload bug (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantera07 committed May 23, 2024
1 parent a02b601 commit 71bb024
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ public boolean reloadConfiguration() throws IOException {
boolean queryPortChanged = newConfiguration.getQueryPort() != configuration.getQueryPort();
boolean queryAlreadyEnabled = configuration.isQueryEnabled();
boolean queryEnabled = newConfiguration.isQueryEnabled();
if ((!queryEnabled && queryAlreadyEnabled) || queryPortChanged) {
if (queryAlreadyEnabled && (!queryEnabled || queryPortChanged)) {
this.cm.close(new InetSocketAddress(
configuration.getBind().getHostString(), configuration.getQueryPort()));
}
if (queryEnabled && queryPortChanged) {
if (queryEnabled && (!queryAlreadyEnabled || queryPortChanged)) {
this.cm.queryBind(newConfiguration.getBind().getHostString(),
newConfiguration.getQueryPort());
}
Expand Down

0 comments on commit 71bb024

Please sign in to comment.