TaskConsumer: Less complainy when interrupted

This commit is contained in:
Gian Merlino 2013-03-19 16:31:37 -07:00
parent e5f46f2a66
commit 243e70a3c0
1 changed files with 3 additions and 2 deletions

View File

@ -86,8 +86,9 @@ public class TaskConsumer implements Runnable
task = queue.take(); task = queue.take();
} }
catch (InterruptedException e) { catch (InterruptedException e) {
log.info(e, "Interrupted while waiting for new work"); log.info("Interrupted while waiting for new work");
throw e; Thread.currentThread().interrupt();
break;
} }
try { try {