summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-03-10 00:16:16 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-10 00:16:16 +0000
commit54a05f3ce2a06b5700b7d08aa24bad20dc114ac5 (patch)
treeaa1247387ac5dae4e34870193b2db9360edf5292 /src/main/java/net/minecraft/server
parent131a2c769bd9de2db4f8c10696e6f12c477a6f50 (diff)
downloadcraftbukkit-54a05f3ce2a06b5700b7d08aa24bad20dc114ac5.tar
craftbukkit-54a05f3ce2a06b5700b7d08aa24bad20dc114ac5.tar.gz
craftbukkit-54a05f3ce2a06b5700b7d08aa24bad20dc114ac5.tar.lz
craftbukkit-54a05f3ce2a06b5700b7d08aa24bad20dc114ac5.tar.xz
craftbukkit-54a05f3ce2a06b5700b7d08aa24bad20dc114ac5.zip
Attempt to fix double disconnects
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 3d4256ae..fe3cd39b 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -545,9 +545,11 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
}
public void a(String s, Object[] aobject) {
- a.info(this.e.name + " lost connection: " + s);
- this.d.f.a((Packet) (new Packet3Chat("\u00A7e" + this.e.name + " left the game.")));
- this.d.f.c(this.e);
+ if (!this.c) {
+ a.info(this.e.name + " lost connection: " + s);
+ this.d.f.a((Packet) (new Packet3Chat("\u00A7e" + this.e.name + " left the game.")));
+ this.d.f.c(this.e);
+ }
this.c = true;
}