From 0d23f749d08ef3b07453675f3dbec9a31639fc56 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 12 Apr 2018 21:10:04 +0200 Subject: write roster only for active accounts --- src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); } -- cgit v1.2.3