Fix rogue detection for remote subservers

This commit is contained in:
ME1312 2022-02-15 11:36:07 -05:00
parent 8a18b6f5d1
commit 3e78536d08
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8

View File

@ -144,7 +144,7 @@ public class PacketLinkServer implements InitialPacket, PacketObjectIn<Integer>,
Logger.get("SubData").info(client.getAddress().toString() + " has been defined as " + ((server instanceof SubServer) ? "SubServer" : "Server") + ": " + server.getName() + ((channel > 0)?" [+"+channel+"]":""));
Runnable register = () -> {
if (server instanceof SubServer && !((SubServer) server).isRunning()) {
if (((SubServer) server).getHost().isAvailable()) {
if (((SubServer) server).isAvailable()) {
Logger.get("SubServers").info("Sending shutdown signal to rogue SubServer: " + server.getName());
client.sendPacket(new PacketOutExReset("Rogue SubServer Detected"));
} else {