Fixed potential infinite loop in RCON handling. Fixes BUKKIT-1570

This commit is contained in:
EvilSeph 2012-06-08 21:02:48 -04:00
parent 873ce288c2
commit 3df6608a72

View File

@ -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) {