Catch InterruptedException and interrupt the current Thread so we at least give someone the chance todo something about it.
This commit is contained in:
parent
bbd251baed
commit
a382149bba
@ -545,7 +545,7 @@ public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor {
|
|||||||
try {
|
try {
|
||||||
wait();
|
wait();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// Ignore
|
Thread.currentThread().interrupt();
|
||||||
} finally {
|
} finally {
|
||||||
waiters --;
|
waiters --;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user