aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-03-08 20:32:14 +0100
committerDrPandemic <bipbip500@gmail.com>2019-06-18 22:20:34 -0400
commit0a5550b13d3a32ae7158dafb38eca6ed94e17d60 (patch)
tree85c3d429673640416ceb729437aaaf1e4bbb91e3 /Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
parent067200be83ff220c0aae501d138b0ab284370b60 (diff)
Remove more unused stuff
Diffstat (limited to 'Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs')
-rw-r--r--Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs18
1 files changed, 0 insertions, 18 deletions
diff --git a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
index 581d6bafd..b82d55d0e 100644
--- a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
+++ b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
@@ -352,11 +352,6 @@ namespace Emby.Server.Implementations.HttpClientManager
}
}
- if (options.ResourcePool != null)
- {
- await options.ResourcePool.WaitAsync(options.CancellationToken).ConfigureAwait(false);
- }
-
if (options.LogRequest)
{
_logger.LogDebug("HttpClientManager {0}: {1}", httpMethod.ToString(), options.Url);
@@ -397,10 +392,6 @@ namespace Emby.Server.Implementations.HttpClientManager
{
throw GetCancellationException(options, options.CancellationToken, ex);
}
- finally
- {
- options.ResourcePool?.Release();
- }
}
private HttpResponseInfo GetResponseInfo(HttpResponseMessage httpResponse, Stream content, long? contentLength, IDisposable disposable)
@@ -483,11 +474,6 @@ namespace Emby.Server.Implementations.HttpClientManager
var httpWebRequest = GetRequestMessage(options, HttpMethod.Get);
- if (options.ResourcePool != null)
- {
- await options.ResourcePool.WaitAsync(options.CancellationToken).ConfigureAwait(false);
- }
-
options.Progress.Report(0);
if (options.LogRequest)
@@ -528,10 +514,6 @@ namespace Emby.Server.Implementations.HttpClientManager
throw GetException(ex, options);
}
- finally
- {
- options.ResourcePool?.Release();
- }
}
private Exception GetException(Exception ex, HttpRequestOptions options)