3
0
KCauldronX/patches/net/minecraft/network/rcon/RConThreadClient.java.patch

28 lines
859 B
Diff
Raw Normal View History

2015-03-25 05:24:42 +00:00
--- ../src-base/minecraft/net/minecraft/network/rcon/RConThreadClient.java
+++ ../src-work/minecraft/net/minecraft/network/rcon/RConThreadClient.java
2015-05-14 16:39:15 +00:00
@@ -45,13 +45,15 @@
{
try
{
- if (!this.running)
+ if (!this.running || clientSocket == null)
{
break;
}
2015-05-08 09:29:14 +00:00
2015-03-25 05:24:42 +00:00
BufferedInputStream bufferedinputstream = new BufferedInputStream(this.clientSocket.getInputStream());
int i = bufferedinputstream.read(this.buffer, 0, 1460);
2015-05-08 09:29:14 +00:00
+
2015-03-25 05:24:42 +00:00
+ if (i == -1) this.running = false; // Cauldron
2015-05-08 09:29:14 +00:00
if (10 > i)
2015-03-25 05:24:42 +00:00
{
2015-05-14 16:39:15 +00:00
@@ -167,6 +169,7 @@
private void closeSocket()
{
+ this.running = false;
if (null != this.clientSocket)
{
try