fixed logic bug where presences where cleared to early

This commit is contained in:
Daniel Gultsch 2014-03-13 18:36:56 +01:00
parent 748582e3ab
commit 507cfba6ad

View file

@ -202,7 +202,6 @@ public class XmppConnectionService extends Service {
}
scheduleWakeupCall(PING_MAX_INTERVAL, true);
} else if (account.getStatus() == Account.STATUS_OFFLINE) {
databaseBackend.clearPresences(account);
if (!account.isOptionSet(Account.OPTION_DISABLED)) {
int timeToReconnect = mRandom.nextInt(50) + 10;
scheduleWakeupCall(timeToReconnect, false);