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
1 changed files with 0 additions and 1 deletions

View File

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