mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Fix exiting due to count condition eating packets.
This commit is contained in:
parent
98e006c856
commit
89b59f7c3d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue