Skip to content

Commit

Permalink
Fixed configuration HttpReadTimeout ignored / not working #255 - fixe…
Browse files Browse the repository at this point in the history
…d typo
  • Loading branch information
daniel-luberda committed Jul 5, 2016
1 parent 5831966 commit 049a0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/FFImageLoading.Shared/Cache/DownloadCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private async Task<byte[]> DownloadAsync(string url, string filename, Cancellati

using (var cancelReadTimeoutToken = new CancellationTokenSource())
{
cancelHeadersToken.CancelAfter(TimeSpan.FromSeconds(ImageService.Instance.Config.HttpReadTimeout));
cancelReadTimeoutToken.CancelAfter(TimeSpan.FromSeconds(ImageService.Instance.Config.HttpReadTimeout));

return await Task.Run(async () => await response.Content.ReadAsByteArrayAsync().ConfigureAwait(false),
cancelReadTimeoutToken.Token).ConfigureAwait(false);
Expand Down

0 comments on commit 049a0ea

Please sign in to comment.