felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1745605 - /felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ComponentImpl.java
Date Thu, 26 May 2016 13:38:25 GMT
Author: pderop
Date: Thu May 26 13:38:25 2016
New Revision: 1745605

URL: http://svn.apache.org/viewvc?rev=1745605&view=rev
Log:
In unregisterService(), really unregister the service is also in the state is in the Bundle.STARTING
state.


Modified:
    felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ComponentImpl.java

Modified: felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ComponentImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ComponentImpl.java?rev=1745605&r1=1745604&r2=1745605&view=diff
==============================================================================
--- felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ComponentImpl.java
(original)
+++ felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ComponentImpl.java
Thu May 26 13:38:25 2016
@@ -1313,7 +1313,7 @@ public class ComponentImpl implements Co
     private void unregisterService() {
         if (m_serviceName != null && m_registration != null) {
             try {
-                if (m_bundle != null && (m_bundle.getState() == Bundle.ACTIVE ||
m_bundle.getState() == Bundle.STOPPING)) {
+                if (m_bundle != null && (m_bundle.getState() == Bundle.STARTING ||
m_bundle.getState() == Bundle.ACTIVE || m_bundle.getState() == Bundle.STOPPING)) {
                     m_registration.unregister();
                 }
             } catch (IllegalStateException e) { /* Should we really log this ? */}



Mime
View raw message