don’t let attempt count fall below zero
This commit is contained in:
parent
d4fca79f4e
commit
146703804a
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ public class XmppConnection implements Runnable {
|
|||
} catch (final IOException | XmlPullParserException | NoSuchAlgorithmException e) {
|
||||
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": " + e.getMessage());
|
||||
this.changeStatus(Account.State.OFFLINE);
|
||||
this.attempt--; //don't count attempt when reconnecting instantly anyway
|
||||
this.attempt = Math.max(0, this.attempt - 1);
|
||||
} finally {
|
||||
forceCloseSocket();
|
||||
if (wakeLock.isHeld()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue