mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-05 16:55:03 -05:00
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 New Issue
Block a user