IDEMPIERE-5756 2PackActivator: should check Adempiere.isStarted instead of getThreadPoolExecutor (#1878)

This commit is contained in:
Carlos Ruiz 2023-06-07 00:30:57 +02:00 committed by GitHub
parent 08c6d0aaa0
commit 6c853381a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);