IDEMPIERE-5756 2PackActivator: should check Adempiere.isStarted instead of getThreadPoolExecutor (#1876)
This commit is contained in:
parent
c36a5c0368
commit
d51fc4fb8c
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue