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:
parent
e89af266e6
commit
bc64e0a017
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