mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
extracted httpclient dependancy
This commit is contained in:
@@ -171,12 +171,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
/// <value>The web socket listeners.</value>
|
||||
public IEnumerable<IWebSocketListener> WebSocketListeners { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The _HTTP manager
|
||||
/// </summary>
|
||||
/// <value>The HTTP manager.</value>
|
||||
public HttpManager HttpManager { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the TCP manager.
|
||||
/// </summary>
|
||||
@@ -323,9 +317,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
|
||||
Logger.Info("Version {0} initializing", ApplicationVersion);
|
||||
|
||||
DisposeHttpManager();
|
||||
HttpManager = new HttpManager(this, Logger);
|
||||
|
||||
await OnConfigurationLoaded().ConfigureAwait(false);
|
||||
|
||||
FindParts();
|
||||
@@ -422,7 +413,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
if (dispose)
|
||||
{
|
||||
DisposeTcpManager();
|
||||
DisposeHttpManager();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -438,18 +428,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the HTTP manager.
|
||||
/// </summary>
|
||||
private void DisposeHttpManager()
|
||||
{
|
||||
if (HttpManager != null)
|
||||
{
|
||||
HttpManager.Dispose();
|
||||
HttpManager = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current application version
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user