[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 {
|
try {
|
||||||
result = executor.invokeAny(r);
|
result = executor.invokeAny(r);
|
||||||
executor.shutdown();
|
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(() -> {
|
Thread disconnector = new Thread(() -> {
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
|
|
Reference in a new issue