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

Merge invokePacketCollectors() and notifiyReceivedListeners()

into invokePacketCollectorsAndNotifyRecvListeners()
This commit is contained in:
Florian Schmaus 2014-10-30 23:36:40 +01:00
parent 1de2fc2a81
commit 0408d075b7
2 changed files with 31 additions and 39 deletions

View file

@ -238,17 +238,10 @@ public class DummyConnection extends AbstractXMPPConnection {
* @param packet the packet to process.
*/
public void processPacket(Packet packet) {
if (packet == null) {
return;
}
invokePacketCollectors(packet);
if (SmackConfiguration.DEBUG_ENABLED) {
System.out.println("[RECV]: " + packet.toXML());
}
// Deliver the incoming packet to listeners.
notifiyReceivedListeners(packet);
invokePacketCollectorsAndNotifyRecvListeners(packet);
}
}