Handle MX record not resolving

pull/172/head
M66B 6 years ago
parent c369c51f4f
commit 62fabef955

@ -221,6 +221,7 @@ public class EmailProvider {
} catch (Throwable ex) {
Log.w(ex);
try {
// Retry at MX server addresses
Record[] records = lookupDNS(context, domain, Type.MX);
for (Record record : records) {
@ -237,6 +238,9 @@ public class EmailProvider {
if (autoconfig != null)
break;
}
} catch (Throwable ex1) {
Log.w(ex1);
}
if (autoconfig == null)
throw ex;

Loading…
Cancel
Save