mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-23 23:20:57 +03:00
Close cache reader. Should fix #446
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user