aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-01-04 15:33:11 +0100
committerDaniel Gultsch <daniel@gultsch.de>2016-01-04 15:33:11 +0100
commitfdb6b0e30d7cc5a90e4bad181ddc89acf4a2e4fa (patch)
tree49162c7e75359ef7d5f348bc3ccfd1c229296a16 /src/main
parentf815a7cd2619f35ed47560c99cc299653f167cb0 (diff)
only report error after third unsuccesful attempt to connect
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Account.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Account.java b/src/main/java/eu/siacs/conversations/entities/Account.java
index 64bbaa2b0..46865a6fd 100644
--- a/src/main/java/eu/siacs/conversations/entities/Account.java
+++ b/src/main/java/eu/siacs/conversations/entities/Account.java
@@ -281,7 +281,7 @@ public class Account extends AbstractEntity {
}
public boolean hasErrorStatus() {
- return getXmppConnection() != null && getStatus().isError() && getXmppConnection().getAttempt() >= 2;
+ return getXmppConnection() != null && getStatus().isError() && getXmppConnection().getAttempt() >= 3;
}
public String getResource() {