Permalink
Browse files

Merge pull request #54 from olegz/INT-2104

  fixed invalid check for open folder that was precluding ImapIdleChannelAdapter from receiving subsequent email messages
  • Loading branch information...
2 parents 10efd1c + a716b58 commit c38e585250ca572d39beade71eaa1920e010e1f0 @markfisher markfisher committed Sep 2, 2011
@@ -116,12 +116,10 @@ protected void doStop() {
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 attempt to resubmit in " + reconnectDelay + " milliseconds.", e);

0 comments on commit c38e585

Please sign in to comment.