1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 07:42:06 +01:00

Use ResolverResult.getResolutionUnsuccessfulException() in MiniDnsResolver

This commit is contained in:
Florian Schmaus 2017-12-05 20:52:42 +01:00
parent a25971d02b
commit 9863b9c458

View file

@ -75,9 +75,8 @@ public class MiniDnsResolver extends DNSResolver implements SmackInitializer {
return null;
}
// TODO: Use ResolverResult.getResolutionUnsuccessfulException() found in newer MiniDNS versions.
if (!result.wasSuccessful()) {
ResolutionUnsuccessfulException resolutionUnsuccessfulException = getExceptionFrom(result);
ResolutionUnsuccessfulException resolutionUnsuccessfulException = result.getResolutionUnsuccessfulException();
if (resolutionUnsuccessfulException != null) {
failedAddresses.add(new HostAddress(name, resolutionUnsuccessfulException));
return null;
}