1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

Bug 470190 - remote connection service not cached correctly

Change-Id: I3a1f3dfb90843fc6c651f8b9e8e83b0c3afa3767
Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2015-06-15 10:58:45 -04:00
parent e89af266e6
commit bc64e0a017

View file

@ -68,8 +68,7 @@ public class RemoteConnection implements IRemoteConnection {
@SuppressWarnings("unchecked")
@Override
public <T extends Service> T getService(Class<T> service) {
String serviceName = service.getName();
T obj = (T) servicesMap.get(serviceName);
T obj = (T) servicesMap.get(service);
if (obj == null) {
obj = connectionType.getConnectionService(this, service);
if (obj != null) {