Skip to content

Commit

Permalink
Fix infinite loop on cache file read error.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed May 18, 2022
1 parent 607c6a9 commit 7062618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private async Task SendResponseAsync(
// This can happen if the cached image has been physically deleted but the item is still in the LRU cache.
// We'll retry running the request again in it's entirety. This ensures any changes to the source are tracked also.
CacheResolverLru.TryRemove(key);
await this.Invoke(httpContext);
await this.Invoke(httpContext, true);
return;
}

Expand Down

0 comments on commit 7062618

Please sign in to comment.