From 54a05f3ce2a06b5700b7d08aa24bad20dc114ac5 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 10 Mar 2011 00:16:16 +0000 Subject: [PATCH] Attempt to fix double disconnects --- src/main/java/net/minecraft/server/NetServerHandler.java | 8 +++++--- 1 file 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 3d4256aed7..fe3cd39b07 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; }