mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-28 18:43:46 +01:00
Merge pull request #5242 from jellyfin/cancellationtokens
Properly forward cancellationTokens
This commit is contained in:
@@ -756,7 +756,10 @@ namespace MediaBrowser.Providers.Music
|
||||
_stopWatchMusicBrainz.Restart();
|
||||
|
||||
using var request = new HttpRequestMessage(HttpMethod.Get, requestUrl);
|
||||
response = await _httpClientFactory.CreateClient(NamedClient.MusicBrainz).SendAsync(request).ConfigureAwait(false);
|
||||
response = await _httpClientFactory
|
||||
.CreateClient(NamedClient.MusicBrainz)
|
||||
.SendAsync(request, cancellationToken)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
// We retry a finite number of times, and only whilst MB is indicating 503 (throttling).
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user