Skip to content

Commit

Permalink
Fix SimplePacketQueue#flush isn't clearing the list
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Apr 17, 2022
1 parent ada03c7 commit 18d1344
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ public void flush(@NotNull PacketSender sender) {
for (Map.Entry<Protocol<?, ? extends Message>, ? extends Message> entry : list) {
((Protocol) entry.getKey()).sendPacket(sender, entry.getValue());
}
list.clear();
}
}

0 comments on commit 18d1344

Please sign in to comment.