You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
859 B

--- ../src-base/minecraft/net/minecraft/network/rcon/RConThreadClient.java
+++ ../src-work/minecraft/net/minecraft/network/rcon/RConThreadClient.java
@@ -45,13 +45,15 @@
{
try
{
- if (!this.running)
+ if (!this.running || clientSocket == null)
{
break;
}
BufferedInputStream bufferedinputstream = new BufferedInputStream(this.clientSocket.getInputStream());
int i = bufferedinputstream.read(this.buffer, 0, 1460);
+
+ if (i == -1) this.running = false; // Cauldron
if (10 > i)
{
@@ -167,6 +169,7 @@
private void closeSocket()
{
+ this.running = false;
if (null != this.clientSocket)
{
try