don't count when attempt failed completly
This commit is contained in:
parent
6c3ea7f2bd
commit
3a52f31824
|
@ -229,6 +229,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
|
||||
} finally {
|
||||
if (wakeLock.isHeld()) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue