diff options
author | Jose <jose@zeroc.com> | 2020-09-18 13:38:18 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2020-09-18 13:38:18 +0200 |
commit | 89a1f0e9bac7b76e23285562fe6953e3cbd00a7a (patch) | |
tree | 46a7eb4ed230f3fa0904c7ce9659ea7be25042f9 /csharp/src | |
parent | Bump http-proxy from 1.18.0 to 1.18.1 in /js (#1027) (diff) | |
download | ice-89a1f0e9bac7b76e23285562fe6953e3cbd00a7a.tar.bz2 ice-89a1f0e9bac7b76e23285562fe6953e3cbd00a7a.tar.xz ice-89a1f0e9bac7b76e23285562fe6953e3cbd00a7a.zip |
Do not use Dictionary.Add it can throw ArgumentException
Diffstat (limited to 'csharp/src')
-rw-r--r-- | csharp/src/IceDiscovery/LocatorI.cs | 4 |
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)) { |