Skip to content

Commit

Permalink
Fix disposing
Browse files Browse the repository at this point in the history
  • Loading branch information
MBR-0001 committed Dec 24, 2024
1 parent c7800c2 commit 5f1c9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.OpenSubtitles/OpenSubtitleDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class OpenSubtitleDownloader : ISubtitleProvider
private LoginInfo? _login;
private DateTime? _limitReset;
private DateTime? _lastRatelimitLog;
private IReadOnlyList<string>? _languages;
private List<string>? _languages;
private PluginConfiguration? _configuration;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static string ComputeHash(Stream input)
}
}

var result = await client.SendAsync(request, cancellationToken).ConfigureAwait(false);
using var result = await client.SendAsync(request, cancellationToken).ConfigureAwait(false);
var resHeaders = result.Headers.ToDictionary(x => x.Key.ToLowerInvariant(), x => x.Value.First());
var resBody = await result.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

Expand Down

0 comments on commit 5f1c9e4

Please sign in to comment.