Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Fix GS4 query reloading logic
Closes #915. This isn't a fatal error, but it's a clear papercut.
Dieser Commit ist enthalten in:
Ursprung
f62768be9a
Commit
ffa4c95435
@ -448,13 +448,14 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
|
|||||||
this.cm.close(configuration.getBind());
|
this.cm.close(configuration.getBind());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.isQueryEnabled() && (!newConfiguration.isQueryEnabled()
|
boolean queryPortChanged = newConfiguration.getQueryPort() != configuration.getQueryPort();
|
||||||
|| newConfiguration.getQueryPort() != configuration.getQueryPort())) {
|
boolean queryAlreadyEnabled = configuration.isQueryEnabled();
|
||||||
|
boolean queryEnabled = newConfiguration.isQueryEnabled();
|
||||||
|
if ((!queryEnabled && queryAlreadyEnabled) || queryPortChanged) {
|
||||||
this.cm.close(new InetSocketAddress(
|
this.cm.close(new InetSocketAddress(
|
||||||
configuration.getBind().getHostString(), configuration.getQueryPort()));
|
configuration.getBind().getHostString(), configuration.getQueryPort()));
|
||||||
}
|
}
|
||||||
|
if (queryEnabled && queryPortChanged) {
|
||||||
if (newConfiguration.isQueryEnabled()) {
|
|
||||||
this.cm.queryBind(newConfiguration.getBind().getHostString(),
|
this.cm.queryBind(newConfiguration.getBind().getHostString(),
|
||||||
newConfiguration.getQueryPort());
|
newConfiguration.getQueryPort());
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren