Fix exiting due to count condition eating packets.

This commit is contained in:
md_5 2015-04-20 19:11:52 +10:00
parent 98e006c856
commit 89b59f7c3d

View file

@ -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