Fix exiting due to count condition eating packets.
This commit is contained in:
@@ -29,7 +29,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // Spigot start
|
+ // Spigot start
|
||||||
+ FutureTask<?> entry;
|
+ FutureTask<?> entry;
|
||||||
+ int count = this.j.size();
|
+ 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);
|
+ SystemUtils.a(entry, MinecraftServer.LOGGER);
|
||||||
+ }
|
+ }
|
||||||
+ // Spigot end
|
+ // Spigot end
|
||||||
|
|||||||
Reference in New Issue
Block a user