INT-1701 minor polishing on ImapIdleChannelAdapter to actually use 'reconnectDelay' variable

This commit is contained in:
Oleg Zhurakousky
2011-01-08 12:30:07 -05:00
parent bc9c189ef4
commit 8ad57f4527

View File

@@ -162,7 +162,7 @@ public class ImapIdleChannelAdapter extends MessageProducerSupport {
CountDownLatch latch = new CountDownLatch(1);
try {
logger.warn("Waiting " + reconnectDelay + " seconds before attemptong to reconnect to host");
latch.await(5, TimeUnit.SECONDS);
latch.await(this.reconnectDelay, TimeUnit.SECONDS);
reconnecting = true;
logger.warn("Will attempt to reconnect to host now");
} catch (Exception ignore) {