mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-02-16 22:23:54 +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:
parent
7dd1cd5bbd
commit
28a2a0c7fd
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user