only report error after third unsuccesful attempt to connect
This commit is contained in:
parent
f815a7cd26
commit
fdb6b0e30d
|
@ -281,7 +281,7 @@ public class Account extends AbstractEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasErrorStatus() {
|
public boolean hasErrorStatus() {
|
||||||
return getXmppConnection() != null && getStatus().isError() && getXmppConnection().getAttempt() >= 2;
|
return getXmppConnection() != null && getStatus().isError() && getXmppConnection().getAttempt() >= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResource() {
|
public String getResource() {
|
||||||
|
|
Loading…
Reference in a new issue