throw state changing exception on failed tls only if no more connection options left
This commit is contained in:
parent
19c1484053
commit
edb28ccb31
|
@ -395,7 +395,9 @@ public class XmppConnection implements Runnable {
|
|||
|
||||
if (!tlsFactoryVerifier.verifier.verify(account.getServer().getDomainpart(), ((SSLSocket) localSocket).getSession())) {
|
||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": TLS certificate verification failed");
|
||||
throw new StateChangingException(Account.State.TLS_ERROR);
|
||||
if (!iterator.hasNext()) {
|
||||
throw new StateChangingException(Account.State.TLS_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (startXmpp(localSocket)) {
|
||||
|
|
Loading…
Reference in a new issue