interrupt sub thread in resolver

This commit is contained in:
Daniel Gultsch 2018-09-26 10:18:56 +02:00
parent cdcd2f8b04
commit 9015d0a1fc
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}
} }
} }