We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2506dd5 commit 988b88cCopy full SHA for 988b88c
Src/SocketIoClientDotNet/Client/IO.cs
@@ -6,7 +6,7 @@ namespace Quobject.SocketIoClientDotNet.Client
6
{
7
public class IO
8
9
- private static readonly ImmutableDictionary<string, Manager> Managers = ImmutableDictionary.Create<string, Manager>();
+ private static ImmutableDictionary<string, Manager> Managers = ImmutableDictionary.Create<string, Manager>();
10
11
/// <summary>
12
/// Protocol version
@@ -55,7 +55,7 @@ public static Socket Socket(Uri uri, Options opts)
55
if (!Managers.ContainsKey(id))
56
57
log.Info( string.Format("new io instance for {0}", id));
58
- Managers.Add(id, new Manager(uri, opts));
+ Managers = Managers.Add(id, new Manager(uri, opts));
59
60
}
61
io = Managers[id];
0 commit comments