diff options
| author | crobibero <cody@robibe.ro> | 2020-08-16 10:57:01 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-08-16 10:57:01 -0600 |
| commit | 8da646e12b6122b3a73830eb9cbf3e39033d8ba3 (patch) | |
| tree | eda7f142c6b0eebb0587d133f0721d5ebd73c0e4 /Jellyfin.Api/Controllers/LiveTvController.cs | |
| parent | 8ddcd12348da48c8a07a7f897c014974995af6d9 (diff) | |
Dispose httpclient response
Diffstat (limited to 'Jellyfin.Api/Controllers/LiveTvController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LiveTvController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs index 2838361d7..9d8ec9f75 100644 --- a/Jellyfin.Api/Controllers/LiveTvController.cs +++ b/Jellyfin.Api/Controllers/LiveTvController.cs @@ -1071,7 +1071,7 @@ namespace Jellyfin.Api.Controllers { var client = _httpClientFactory.CreateClient(); // https://json.schedulesdirect.org/20141201/available/countries - var response = await client.GetAsync("https://json.schedulesdirect.org/20141201/available/countries") + using var response = await client.GetAsync("https://json.schedulesdirect.org/20141201/available/countries") .ConfigureAwait(false); return File(await response.Content.ReadAsStreamAsync().ConfigureAwait(false), MediaTypeNames.Application.Json); |
