Catch InterruptedException and interrupt the current Thread so we at least give someone the chance todo something about it.

This commit is contained in:
Norman Maurer 2011-11-24 11:32:05 +01:00
parent bbd251baed
commit a382149bba

View File

@ -545,7 +545,7 @@ public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor {
try {
wait();
} catch (InterruptedException e) {
// Ignore
Thread.currentThread().interrupt();
} finally {
waiters --;
}