summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-12-27 19:57:54 -0500
committerEvilSeph <evilseph@gmail.com>2011-12-27 19:57:54 -0500
commit8b21a0eeef1d6a5ae9baeb0f930b07c3f6bfd4c6 (patch)
treee600a95be7d0e63c341c9bed21b10dece443f9d8 /src
parent066a95769c3905308060641cd08a25b19748b45f (diff)
downloadcraftbukkit-8b21a0eeef1d6a5ae9baeb0f930b07c3f6bfd4c6.tar
craftbukkit-8b21a0eeef1d6a5ae9baeb0f930b07c3f6bfd4c6.tar.gz
craftbukkit-8b21a0eeef1d6a5ae9baeb0f930b07c3f6bfd4c6.tar.lz
craftbukkit-8b21a0eeef1d6a5ae9baeb0f930b07c3f6bfd4c6.tar.xz
craftbukkit-8b21a0eeef1d6a5ae9baeb0f930b07c3f6bfd4c6.zip
Disconnected means disconnected.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 7c0b7055..16ec9ee6 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -657,6 +657,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
}
public void a(Packet packet) {
+ if (this.disconnected) return; // CraftBukkit
a.warning(this.getClass() + " wasn\'t prepared to deal with a " + packet.getClass());
this.disconnect("Protocol error, unexpected packet");
}