only report error after third unsuccesful attempt to connect

This commit is contained in:
Daniel Gultsch 2016-01-04 15:33:11 +01:00
parent f815a7cd26
commit fdb6b0e30d

View file

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