diff options
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/sca/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java b/java/sca/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java index ab139519c8..c6e01564db 100644 --- a/java/sca/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java +++ b/java/sca/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java @@ -111,7 +111,7 @@ public class OSGiImplementationProvider implements ImplementationProvider { // Do we have to unregister the services? try { int state = osgiBundle.getState(); - if ((state & Bundle.STARTING) == 0) { + if ((state & Bundle.STOPPING) == 0 && (state & Bundle.ACTIVE) != 0) { osgiBundle.stop(); } } catch (BundleException e) { |