commit | 52ed05ad32105a7869cf8dfa3fadf6bb9f06816a | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu May 28 19:49:33 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu May 28 19:49:33 2009 +0000 |
tree | a3921681cdeb4473302a958c141870ee47112f9a | |
parent | 0f17c89f7b2e65fa27f26e1c49a9337ce64843ee [diff] |
BundleContext.ungetService() should only return false if the service usage count was zero when the call was invoked. (FELIX-1187) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@779742 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java b/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java index 60258aa..90fd2e5 100644 --- a/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java +++ b/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java
@@ -427,7 +427,7 @@ } } - return (usage.m_count > 0); + return true; } @@ -874,4 +874,4 @@ public ServiceReference m_ref = null; public Object m_svcObj = null; } -} \ No newline at end of file +}