Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2011-01-12 17:43:41 -0500
committerslewis2011-01-12 17:43:41 -0500
commitc7412d0f340eecef4b5c5bb38cf9ebc7a8e9d26d (patch)
tree810129d670e782fb1111703e99ead0615263b384 /incubation
parent102989ee8314eb42a5b2cfbc959447c1159d9877 (diff)
downloadorg.eclipse.ecf-c7412d0f340eecef4b5c5bb38cf9ebc7a8e9d26d.tar.gz
org.eclipse.ecf-c7412d0f340eecef4b5c5bb38cf9ebc7a8e9d26d.tar.xz
org.eclipse.ecf-c7412d0f340eecef4b5c5bb38cf9ebc7a8e9d26d.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=331836
Diffstat (limited to 'incubation')
-rw-r--r--incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/HostContainerSelector.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/HostContainerSelector.java b/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/HostContainerSelector.java
index 9a27e3061..4fba49906 100644
--- a/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/HostContainerSelector.java
+++ b/incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/HostContainerSelector.java
@@ -27,7 +27,10 @@ public class HostContainerSelector extends AbstractHostContainerSelector
this.autoCreateContainer = autoCreateContainer;
}
- public IRemoteServiceContainer[] selectHostContainers(
+ // Adding synchronized to make the host container finding
+ // thread safe to deal with bug
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=331836
+ public synchronized IRemoteServiceContainer[] selectHostContainers(
ServiceReference serviceReference,
String[] serviceExportedInterfaces,
String[] serviceExportedConfigs, String[] serviceIntents) {

Back to the top