1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 01:29:38 +02:00

Add invokePacketCollectors, remove duplicate code

Add javadoc about why we use CocurrentLinkedQueue for collectors.
This commit is contained in:
Florian Schmaus 2014-10-10 02:41:37 +02:00
parent 15d59299a2
commit c3528d082e
2 changed files with 23 additions and 18 deletions

View file

@ -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());