diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-01-29 23:35:31 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-01-29 23:35:31 +0100 |
commit | 3a52f318248134a49dda7d6704ba43bc91784318 (patch) | |
tree | 8f14d72df8d56b9e32278630b1d5642572ab5187 /src | |
parent | 6c3ea7f2bdde738c48067ecb6b6588b7ad39a05e (diff) |
don't count when attempt failed completly
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index c16ac32b..19e271b2 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -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 { |