don't count when attempt failed completly

This commit is contained in:
iNPUTmice 2015-01-29 23:35:31 +01:00
parent 6c3ea7f2bd
commit 3a52f31824
1 changed files with 1 additions and 0 deletions

View File

@ -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 {