From 89b59f7c3d10b64878bdbdce25049283ab4035a6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 20 Apr 2015 19:11:52 +1000 Subject: [PATCH] Fix exiting due to count condition eating packets. --- CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch b/CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch index b249804af8..76fc5bb8f4 100644 --- a/CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch +++ b/CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch @@ -29,7 +29,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Spigot start + FutureTask entry; + int count = this.j.size(); -+ while ((entry = this.j.poll()) != null && count-- > 0) { ++ while (count-- > 0 && (entry = this.j.poll()) != null) { + SystemUtils.a(entry, MinecraftServer.LOGGER); + } + // Spigot end