interrupt sub thread in resolver

This commit is contained in:
Christian Schneppe 2018-09-27 20:27:20 +02:00
parent 7f77edb3bc
commit 67547e7315

View file

@ -122,7 +122,12 @@ public class Resolver {
}
}
} catch (InterruptedException e) {
return results;
for (Thread thread : threads) {
thread.interrupt();
}
synchronized (results) {
return new ArrayList<>(results);
}
}
}