aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/entities/Account.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-07-14 23:23:13 +0200
committerChristian Schneppe <christian@pix-art.de>2016-07-17 15:22:19 +0200
commitf260e378c50bff21d0b887827a6befd2720ca0c9 (patch)
tree50f81916623feec9221443629f0011e5b842e117 /src/main/java/eu/siacs/conversations/entities/Account.java
parent47f559310b72a23d8049af5a423f353e8aea841e (diff)
show error notification in connecting state as well
Diffstat (limited to 'src/main/java/eu/siacs/conversations/entities/Account.java')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Account.java4
1 files changed, 3 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 8eb555331..2f2ffc049 100644
--- a/src/main/java/eu/siacs/conversations/entities/Account.java
+++ b/src/main/java/eu/siacs/conversations/entities/Account.java
@@ -320,7 +320,9 @@ public class Account extends AbstractEntity {
}
public boolean hasErrorStatus() {
- return getXmppConnection() != null && getStatus().isError() && getXmppConnection().getAttempt() >= 3;
+ return getXmppConnection() != null
+ && (getStatus().isError() || getStatus() == State.CONNECTING)
+ && getXmppConnection().getAttempt() >= 3;
}
public void setPresenceStatus(Presence.Status status) {