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())
|
if (isFrameworkStarted())
|
||||||
frameworkStarted ();
|
frameworkStarted ();
|
||||||
};
|
};
|
||||||
if (Adempiere.getThreadPoolExecutor() != null) {
|
if (Adempiere.isStarted()) {
|
||||||
Adempiere.getThreadPoolExecutor().submit(runnable);
|
Adempiere.getThreadPoolExecutor().submit(runnable);
|
||||||
} else {
|
} else {
|
||||||
MyServerStateChangeListener l = new MyServerStateChangeListener(runnable);
|
MyServerStateChangeListener l = new MyServerStateChangeListener(runnable);
|
||||||
|
|
Loading…
Reference in New Issue