aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-12 21:10:04 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-12 21:10:04 +0200
commit0d23f749d08ef3b07453675f3dbec9a31639fc56 (patch)
treed2e77fa21310f0b0af4f9c4bea8ff4ebbd0b0926 /src
parent85cde4a0d0ae0d9a58d38a078f23a3173f875dc3 (diff)
write roster only for active accounts
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 5537297a6..b2f8001b2 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -1194,9 +1194,9 @@ public class XmppConnectionService extends Service {
int activeAccounts = 0;
for (final Account account : accounts) {
if (account.getStatus() != Account.State.DISABLED) {
+ databaseBackend.writeRoster(account.getRoster());
activeAccounts++;
}
- databaseBackend.writeRoster(account.getRoster());
if (account.getXmppConnection() != null) {
new Thread(() -> disconnect(account, false)).start();
}