Permalink
Browse files

INT-2104 on maint

  • Loading branch information...
markfisher committed Sep 2, 2011
1 parent ad8504e commit 56d9cb9bb5d10afebd73d3cb568fb30aa11fa589
@@ -111,12 +111,10 @@ public void run() {
public void run() {
try {
idleTask.run();
- if (mailReceiver.getFolder().isOpen()){
- if (logger.isDebugEnabled()){
- logger.debug("Task completed successfully. Re-scheduling it again right away");
- }
- scheduler.schedule(this, new Date());
- }
+ if (logger.isDebugEnabled()){
+ logger.debug("Task completed successfully. Re-scheduling it again right away");
+ }
+ scheduler.schedule(this, new Date());
}
catch (IllegalStateException e) { //run again after a delay
logger.warn("Failed to execute IDLE task. Will atempt to resubmit in " + reconnectDelay + " milliseconds", e);

0 comments on commit 56d9cb9

Please sign in to comment.