diff options
author | slewis | 2011-01-12 22:43:41 +0000 |
---|---|---|
committer | slewis | 2011-01-12 22:43:41 +0000 |
commit | c7412d0f340eecef4b5c5bb38cf9ebc7a8e9d26d (patch) | |
tree | 810129d670e782fb1111703e99ead0615263b384 /incubation/bundles | |
parent | 102989ee8314eb42a5b2cfbc959447c1159d9877 (diff) | |
download | org.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/bundles')
-rw-r--r-- | incubation/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/HostContainerSelector.java | 5 |
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) {
|