mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 14:33:06 +03:00
update library setup
This commit is contained in:
@@ -283,8 +283,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
|
||||
|
||||
var url = options.Url;
|
||||
var urlHash = url.ToLower().GetMD5().ToString("N");
|
||||
var semaphore = GetLock(url);
|
||||
|
||||
|
||||
var responseCachePath = Path.Combine(_appPaths.CachePath, "httpclient", urlHash);
|
||||
|
||||
response = await GetCachedResponse(responseCachePath, options.CacheLength, url).ConfigureAwait(false);
|
||||
@@ -293,6 +292,8 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
|
||||
return response;
|
||||
}
|
||||
|
||||
var semaphore = GetLock(url);
|
||||
|
||||
await semaphore.WaitAsync(options.CancellationToken).ConfigureAwait(false);
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user