From 3df6608a725a796ed03cbf09b50a914299c9a400 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 8 Jun 2012 21:02:48 -0400 Subject: [PATCH] Fixed potential infinite loop in RCON handling. Fixes BUKKIT-1570 --- src/main/java/net/minecraft/server/RemoteControlSession.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/RemoteControlSession.java b/src/main/java/net/minecraft/server/RemoteControlSession.java index b56a8db8f6..9d4c234a77 100644 --- a/src/main/java/net/minecraft/server/RemoteControlSession.java +++ b/src/main/java/net/minecraft/server/RemoteControlSession.java @@ -84,12 +84,12 @@ public class RemoteControlSession extends RemoteConnectionThread { } } } catch (SocketTimeoutException sockettimeoutexception) { - continue; + return; // CraftBukkit - shut down the thread after hitting an exception. } catch (IOException ioexception) { if (this.running) { this.info("IO: " + ioexception.getMessage()); } - continue; + return; // CraftBukkit - shut down the thread after hitting an exception. } } // CraftBukkit - Loop shift } catch (Exception exception1) {