diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-01-04 15:33:11 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-01-04 15:33:11 +0100 |
commit | fdb6b0e30d7cc5a90e4bad181ddc89acf4a2e4fa (patch) | |
tree | 49162c7e75359ef7d5f348bc3ccfd1c229296a16 /src/main | |
parent | f815a7cd2619f35ed47560c99cc299653f167cb0 (diff) |
only report error after third unsuccesful attempt to connect
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Account.java | 2 |
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 64bbaa2b..46865a6f 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() { |