1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-26 22:27:58 +01:00

Redundant

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6261 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2006-11-29 23:22:29 +00:00 committed by alex
parent a58e1dd0a4
commit c3aad4dec1

View file

@ -309,10 +309,10 @@ public class Roster implements ConnectionListener {
*/
private void setOfflinePresences() {
Presence packetUnavailable;
for (String user : new ArrayList<String>(presenceMap.keySet())) {
for (String user : presenceMap.keySet()) {
Map<String, Presence> resources = presenceMap.get(user);
if (resources != null) {
for (String resource : new ArrayList<String>(resources.keySet())) {
for (String resource : resources.keySet()) {
packetUnavailable = new Presence(Presence.Type.unavailable);
packetUnavailable.setFrom(user + "/" + resource);
presencePacket.processPacket(packetUnavailable);