mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +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:
parent
a58e1dd0a4
commit
c3aad4dec1
1 changed files with 2 additions and 2 deletions
|
@ -309,10 +309,10 @@ public class Roster implements ConnectionListener {
|
||||||
*/
|
*/
|
||||||
private void setOfflinePresences() {
|
private void setOfflinePresences() {
|
||||||
Presence packetUnavailable;
|
Presence packetUnavailable;
|
||||||
for (String user : new ArrayList<String>(presenceMap.keySet())) {
|
for (String user : presenceMap.keySet()) {
|
||||||
Map<String, Presence> resources = presenceMap.get(user);
|
Map<String, Presence> resources = presenceMap.get(user);
|
||||||
if (resources != null) {
|
if (resources != null) {
|
||||||
for (String resource : new ArrayList<String>(resources.keySet())) {
|
for (String resource : resources.keySet()) {
|
||||||
packetUnavailable = new Presence(Presence.Type.unavailable);
|
packetUnavailable = new Presence(Presence.Type.unavailable);
|
||||||
packetUnavailable.setFrom(user + "/" + resource);
|
packetUnavailable.setFrom(user + "/" + resource);
|
||||||
presencePacket.processPacket(packetUnavailable);
|
presencePacket.processPacket(packetUnavailable);
|
||||||
|
|
Loading…
Reference in a new issue