Moved call to doInitialize() out of the synchronized block.

This commit is contained in:
Mark Fisher
2007-12-03 01:03:39 +00:00
parent 4a36bf08cb
commit 5ad10fdeea

View File

@@ -103,11 +103,13 @@ public abstract class AbstractConsumer implements Lifecycle {
synchronized (this.lifecycleMonitor) {
this.active = true;
this.lifecycleMonitor.notifyAll();
if (this.autoStartup) {
}
doInitialize();
if (this.autoStartup) {
synchronized (this.lifecycleMonitor) {
this.start();
}
}
doInitialize();
}
/**