show error notification in connecting state as well

This commit is contained in:
Daniel Gultsch 2016-07-14 23:23:13 +02:00
parent 1db85e582e
commit baa149924a
1 changed files with 3 additions and 1 deletions

View File

@ -321,7 +321,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) {