mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Bulk pending cleanup.
This commit is contained in:
1 parent
b1f6d16bfa
commit
e2b1514daf
37 files changed
+203
-197
No files matched your search
@@ -273,6 +273,12 @@ public class NetworkManager implements INetworkManager {
|
||||
while (!this.inboundQueue.isEmpty() && i-- >= 0) {
|
||||
Packet packet = (Packet) this.inboundQueue.poll(); // CraftBukkit - remove -> poll
|
||||
|
||||
// CraftBukkit start
|
||||
if (this.packetListener instanceof NetLoginHandler ? ((NetLoginHandler) this.packetListener).c : ((NetServerHandler) this.packetListener).disconnected) {
|
||||
continue;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
packet.handle(this.packetListener);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user