We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d6e84 commit 10776c3Copy full SHA for 10776c3
pax-cdi-extension/src/main/java/org/ops4j/pax/cdi/extension/impl/component/ComponentDescriptor.java
@@ -167,10 +167,12 @@ protected void onStart() {
167
168
@Override
169
protected void onStop() {
170
- listener.onComponentUnsatisfied(this);
171
- for (ComponentDependency<S, ?> dependency : dependencies) {
172
- dependency.stop();
+ if (isSatisfied()) {
+ listener.onComponentUnsatisfied(this);
+ for (ComponentDependency<S, ?> dependency : dependencies) {
173
+ dependency.stop();
174
+ }
175
+ serviceRegistration.unregister();
176
}
- serviceRegistration.unregister();
177
178
0 commit comments