mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
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) {
|
} catch (final IOException | XmlPullParserException | NoSuchAlgorithmException e) {
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": " + e.getMessage());
|
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString() + ": " + e.getMessage());
|
||||||
this.changeStatus(Account.State.OFFLINE);
|
this.changeStatus(Account.State.OFFLINE);
|
||||||
|
this.attempt--; //don't count attempt when reconnecting instantly anyway
|
||||||
} finally {
|
} finally {
|
||||||
if (wakeLock.isHeld()) {
|
if (wakeLock.isHeld()) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user