IDEMPIERE-5756 2PackActivator: should check Adempiere.isStarted instead of getThreadPoolExecutor (#1878)
This commit is contained in:
parent
08c6d0aaa0
commit
6c853381a1
|
@ -263,7 +263,7 @@ public abstract class AbstractActivator implements BundleActivator, ServiceTrack
|
|||
if (isFrameworkStarted())
|
||||
frameworkStarted ();
|
||||
};
|
||||
if (Adempiere.getThreadPoolExecutor() != null) {
|
||||
if (Adempiere.isStarted()) {
|
||||
Adempiere.getThreadPoolExecutor().submit(runnable);
|
||||
} else {
|
||||
MyServerStateChangeListener l = new MyServerStateChangeListener(runnable);
|
||||
|
|
Loading…
Reference in New Issue