[BUGFIX] happy eye: null pointer if no connection was etablished

This commit is contained in:
genofire 2020-02-08 16:21:53 +01:00
parent f0a05e133c
commit e125944cbc
No known key found for this signature in database
GPG key ID: 9D7D3C6BFF600C6A

View file

@ -275,6 +275,10 @@ public class Resolver {
try {
result = executor.invokeAny(r);
executor.shutdown();
if (result == null) {
Log.i(Config.LOGTAG, Resolver.class.getSimpleName() + ": happy eyeball unable to connect to one address");
return null;
}
Thread disconnector = new Thread(() -> {
while (true) {
try {