mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-11 16:32:57 +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:
@@ -113,7 +113,8 @@ namespace CryptoExchange.Net
|
||||
/// <param name="api"></param>
|
||||
internal static void RegisterRestApi(string api)
|
||||
{
|
||||
_lastRestDelays[api] = new RestTimeOffset();
|
||||
if (!_lastRestDelays.ContainsKey(api))
|
||||
_lastRestDelays.TryAdd(api, new RestTimeOffset());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user