corrected the previous patch
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@889174 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
index 7cb6d95..c6b437e 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
@@ -421,7 +421,7 @@
public synchronized void setServiceProperties(Dictionary serviceProperties) {
m_serviceProperties = serviceProperties;
- if (isRegistered() && (m_serviceName != null)) {
+ if (isBound() && (m_serviceName != null)) {
m_registration.setProperties(calculateServiceProperties());
}
}
@@ -1028,6 +1028,14 @@
synchronized (m_dependencies) {
state = m_state;
}
+ return (state.isAllRequiredAvailable());
+ }
+
+ private boolean isBound() {
+ State state;
+ synchronized (m_dependencies) {
+ state = m_state;
+ }
return (state.isBound());
}