mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-08 02:17:25 +02:00
Close cache reader. Should fix #446
This commit is contained in:
parent
15a06fcd27
commit
16397e08fc
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue