1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-21 21:33:01 +00:00

Fixed semaphore exception when creating a new REST client while time sync is in progress on another client

This commit is contained in:
JKorf
2026-01-13 22:11:18 +01:00
parent 7dd1cd5bbd
commit 28a2a0c7fd
+2 -1
View File
@@ -113,7 +113,8 @@ namespace CryptoExchange.Net
/// <param name="api"></param> /// <param name="api"></param>
internal static void RegisterRestApi(string api) internal static void RegisterRestApi(string api)
{ {
_lastRestDelays[api] = new RestTimeOffset(); if (!_lastRestDelays.ContainsKey(api))
_lastRestDelays.TryAdd(api, new RestTimeOffset());
} }
/// <summary> /// <summary>