interrupt sub thread in resolver
This commit is contained in:
parent
7f77edb3bc
commit
67547e7315
1 changed files with 6 additions and 1 deletions
|
@ -122,7 +122,12 @@ public class Resolver {
|
|||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
return results;
|
||||
for (Thread thread : threads) {
|
||||
thread.interrupt();
|
||||
}
|
||||
synchronized (results) {
|
||||
return new ArrayList<>(results);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue