forked from mirror/monocles_chat_clean
fixed nasty 'stuck at sending' bug that got introduced in 855c2cfd0a
This commit is contained in:
parent
527246fb4b
commit
a775452581
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||
|
||||
scheduleWakeUpCall(Config.PING_MAX_INTERVAL, account.getUuid().hashCode());
|
||||
} else if (account.getStatus() == Account.State.OFFLINE) {
|
||||
resetSendingToWaiting(account);
|
||||
if (!account.isOptionSet(Account.OPTION_DISABLED)) {
|
||||
int timeToReconnect = mRandom.nextInt(20) + 10;
|
||||
scheduleWakeUpCall(timeToReconnect,account.getUuid().hashCode());
|
||||
|
|
Loading…
Reference in a new issue