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:
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