[BUGFIX] happy eye: null pointer if no connection was etablished
This commit is contained in:
parent
f0a05e133c
commit
e125944cbc
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue