-
Bug
-
Resolution: Unresolved
-
None
-
1.15.1
-
None
-
Plausible
-
Networking
-
Low
-
Platform
The bug
The constructor net.minecraft.server.rcon.thread.RconClient.RconClient(ServerInterface, String, Socket) (Mojang name) handles the exception from Socket.setSoTimeout incorrectly:
RconClient(ServerInterface serverInterface, String string, Socket socket) { super(serverInterface, "RCON Client"); this.client = socket; try { this.client.setSoTimeout(0); } catch (Exception exception) { this.running = false; } this.rconPassword = string; this.info("Rcon connection from: " + socket.getInetAddress()); }
Setting this.running = false; here has no effect since false is the default value and is only set once start() is called.