mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-24 13:02:06 +01:00
Use ResolverResult.getResolutionUnsuccessfulException() in MiniDnsResolver
This commit is contained in:
parent
a25971d02b
commit
9863b9c458
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue