interrupt sub thread in resolver
This commit is contained in:
parent
cdcd2f8b04
commit
9015d0a1fc
|
@ -120,7 +120,12 @@ public class Resolver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
return results;
|
for(Thread thread : threads) {
|
||||||
|
thread.interrupt();
|
||||||
|
}
|
||||||
|
synchronized (results) {
|
||||||
|
return new ArrayList<>(results);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue