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 {
|
||||
wait();
|
||||
} catch (InterruptedException e) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
} finally {
|
||||
waiters --;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user