Close cache reader. Should fix

This commit is contained in:
Deluan 2020-08-17 09:14:08 -04:00
parent 15a06fcd27
commit 16397e08fc

@ -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