Skip to content

Commit

Permalink
Only main CDI container should reset cdi control producer on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDan committed Jun 13, 2020
1 parent cdb0f7c commit 56c5225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ojcms-cdi/src/main/java/de/adito/ojcms/cdi/CdiContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ public SeContainer getContainer()
public void shutdown()
{
container.close();
CDI_CONTROL = null;
if (this == CDI_CONTROL)
CDI_CONTROL = null;
}

/**
Expand Down

0 comments on commit 56c5225

Please sign in to comment.