summaryrefslogtreecommitdiff
path: root/csharp/src
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src')
-rw-r--r--csharp/src/IceDiscovery/LocatorI.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/IceDiscovery/LocatorI.cs b/csharp/src/IceDiscovery/LocatorI.cs
index b4c2922228c..2e55644fc46 100644
--- a/csharp/src/IceDiscovery/LocatorI.cs
+++ b/csharp/src/IceDiscovery/LocatorI.cs
@@ -22,7 +22,7 @@ namespace IceDiscovery
{
if(proxy != null)
{
- _adapters.Add(adapterId, proxy);
+ _adapters[adapterId] = proxy;
}
else
{
@@ -40,7 +40,7 @@ namespace IceDiscovery
{
if(proxy != null)
{
- _adapters.Add(adapterId, proxy);
+ _adapters[adapterId] = proxy;
HashSet<string> adapterIds;
if(!_replicaGroups.TryGetValue(replicaGroupId, out adapterIds))
{