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
committerBond-009 <bond.009@outlook.com>2019-03-08 20:32:14 +0100
commit7f42dcc60fd3aaf30f2408f6bddeb2b8bf921cdf (patch)
tree1cb3fff65e964a2caffa56b3852572c7968699ca /Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs
parent369785c184a8e19250c6e3b16b3609c222399552 (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)