commit | 1364437ec47ee07522d4eae650c7970a7cacc1da | [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 | 585a4bc897c7e3519b780ecd504c9a9273bfe94e [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 +}