From 6779bf2a299816d045821a540aacf55901c2bbec Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 18 Mar 2018 23:19:23 +0100 Subject: [PATCH] write roster only for active accounts --- .../eu/siacs/conversations/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 810e0ec09..83d5a4c2c 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1057,9 +1057,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(); }