mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Bug 470190 - remote connection service not cached correctly
Change-Id: I05b3e326c127166f57dd1f965823549b60dabbcb Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
f6f9d46b8e
commit
4e320f218e
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue