From 16397e08fcfc5368e2d6da635e6c4b10da3e96af Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 17 Aug 2020 09:14:08 -0400 Subject: [PATCH] Close cache reader. Should fix #446 --- core/artwork.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/artwork.go b/core/artwork.go index d37d98666..aae458325 100644 --- a/core/artwork.go +++ b/core/artwork.go @@ -68,6 +68,7 @@ func (c *artwork) Get(ctx context.Context, id string, size int, out io.Writer) e log.Error(ctx, "Error accessing image cache", "path", path, "size", size, err) return err } + defer r.Close() _, err = io.Copy(out, r) return err