TaskConsumer: Don't tell the queue we're done if we have been shut down

This commit is contained in:
Gian Merlino 2012-11-21 12:18:27 -08:00
parent 06b8e4230c
commit 09669b6a2e
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ public class TaskConsumer implements Runnable
.emit();
// TODO - Retry would be nice, but only after we have a way to throttle and limit them
queue.done(task, TaskStatus.failure(task.getId()));
if(!shutdown) {
queue.done(task, TaskStatus.failure(task.getId()));
}
}
}
}