mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-06 05:01:12 +01:00
Add invokePacketCollectors, remove duplicate code
Add javadoc about why we use CocurrentLinkedQueue for collectors.
This commit is contained in:
parent
15d59299a2
commit
c3528d082e
2 changed files with 23 additions and 18 deletions
|
|
@ -240,10 +240,7 @@ public class DummyConnection extends AbstractXMPPConnection {
|
|||
return;
|
||||
}
|
||||
|
||||
// Loop through all collectors and notify the appropriate ones.
|
||||
for (PacketCollector collector: getPacketCollectors()) {
|
||||
collector.processPacket(packet);
|
||||
}
|
||||
invokePacketCollectors(packet);
|
||||
|
||||
if (SmackConfiguration.DEBUG_ENABLED) {
|
||||
System.out.println("[RECV]: " + packet.toXML());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue