PollingSourceAdapter does schedule tasks when connected to a SynchronousChannel (INT-187).

This commit is contained in:
Mark Fisher
2008-04-11 12:18:03 +00:00
parent 64d46f7e67
commit 87e5edb0dc
2 changed files with 2 additions and 7 deletions

View File

@@ -121,13 +121,6 @@ public class PollingSourceAdapter<T> extends AbstractSourceAdapter<T> implements
if (!this.isInitialized()) {
this.afterPropertiesSet();
}
if (this.getChannel() instanceof SynchronousChannel) {
if (logger.isInfoEnabled()) {
logger.info("source adapter configured on synchronous channel, not scheduling");
}
this.running = true;
return;
}
if (this.scheduler == null) {
if (logger.isInfoEnabled()) {
logger.info("no task scheduler has been provided, will create one");