diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-10 00:16:16 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-10 00:16:16 +0000 |
commit | 54a05f3ce2a06b5700b7d08aa24bad20dc114ac5 (patch) | |
tree | aa1247387ac5dae4e34870193b2db9360edf5292 /src/main/java/net/minecraft/server | |
parent | 131a2c769bd9de2db4f8c10696e6f12c477a6f50 (diff) | |
download | craftbukkit-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.java | 8 |
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; } |