Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dereulenspiegel committed Mar 30, 2010
1 parent 7f650b5 commit a29c727
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/org/jivesoftware/smack/Roster.java
Expand Up @@ -743,6 +743,7 @@ private void setOfflinePresences() {
*/
private void fireRosterChangedEvent(Collection<String> addedEntries, Collection<String> updatedEntries,
Collection<String> deletedEntries) {
System.out.println("Firing roster changed events");
for (RosterListener listener : rosterListeners) {
if (!addedEntries.isEmpty()) {
listener.entriesAdded(addedEntries);
Expand Down Expand Up @@ -1063,6 +1064,7 @@ public void processPacket(Packet packet) {
}
System.out.println("Ok, rosterpacket is processed. AddedEntries: "+addedEntries.size());
// Fire event for roster listeners.
System.out.println("And we have "+rosterListeners.size()+" rosterListener");
fireRosterChangedEvent(addedEntries, updatedEntries, deletedEntries);
}
}
Expand Down

0 comments on commit a29c727

Please sign in to comment.