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

This commit is contained in:
hengsin 2023-06-05 21:07:41 +08:00 committed by GitHub
parent c36a5c0368
commit d51fc4fb8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ public class AdempiereActivator extends AbstractActivator {
protected void frameworkStarted() {
if (service != null) {
if (Adempiere.getThreadPoolExecutor() != null) {
if (Adempiere.isStarted()) {
Adempiere.getThreadPoolExecutor().execute(new Runnable() {
@Override
public void run() {

View File

@ -281,7 +281,7 @@ public class Incremental2PackActivator extends AbstractActivator {
@Override
protected void frameworkStarted() {
if (service != null) {
if (Adempiere.getThreadPoolExecutor() != null) {
if (Adempiere.isStarted()) {
Adempiere.getThreadPoolExecutor().execute(new Runnable() {
@Override
public void run() {

View File

@ -355,7 +355,7 @@ public class PackInApplicationActivator extends AbstractActivator{
@Override
protected void frameworkStarted() {
if (service != null) {
if (Adempiere.getThreadPoolExecutor() != null) {
if (Adempiere.isStarted()) {
Adempiere.getThreadPoolExecutor().execute(new Runnable() {
@Override
public void run() {

View File

@ -248,7 +248,7 @@ public class Version2PackActivator extends AbstractActivator{
@Override
protected void frameworkStarted() {
if (service != null) {
if (Adempiere.getThreadPoolExecutor() != null) {
if (Adempiere.isStarted()) {
Adempiere.getThreadPoolExecutor().execute(new Runnable() {
@Override
public void run() {