From 86bb33ece7ccfe91e6c2aeaa94003942d1aa141c Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 10 Feb 2013 09:33:31 +1100 Subject: [PATCH] Clearing the queue when they are disconnected might actually fix some issues. --- CraftBukkit-Patches/0026-Netty.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0026-Netty.patch b/CraftBukkit-Patches/0026-Netty.patch index d5c3480cd..75705d82b 100644 --- a/CraftBukkit-Patches/0026-Netty.patch +++ b/CraftBukkit-Patches/0026-Netty.patch @@ -1,4 +1,4 @@ -From beb9da65b2dc609c0bbc2a89e673a5556e64e832 Mon Sep 17 00:00:00 2001 +From 42978807473eb106e90adf9554dd76dfeb494f40 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 3 Feb 2013 10:24:33 +1100 Subject: [PATCH] Netty @@ -199,7 +199,7 @@ index 0000000..cfc0535 +} diff --git a/src/main/java/org/spigotmc/netty/NettyNetworkManager.java b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java new file mode 100644 -index 0000000..a16e343 +index 0000000..2ab0271 --- /dev/null +++ b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java @@ -0,0 +1,203 @@ @@ -225,7 +225,6 @@ index 0000000..a16e343 +import net.minecraft.server.PendingConnection; +import net.minecraft.server.PlayerConnection; +import org.bouncycastle.crypto.BufferedBlockCipher; -+import org.bukkit.Bukkit; + +/** + * This class forms the basis of the Netty integration. It implements @@ -349,6 +348,7 @@ index 0000000..a16e343 + public void b() { + for (int i = 1000; !syncPackets.isEmpty() && i >= 0; i--) { + if (handler instanceof PendingConnection ? ((PendingConnection) handler).c : ((PlayerConnection) handler).disconnected) { ++ syncPackets.clear(); + break; + } +