mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-26 07:24:47 +00:00
Fix: unclosed file after get thumbnails
This commit is contained in:
1 parent
ee08821361
commit
bf0998f3a5
2 files changed
+2
-4
No files matched your search
@@ -52,6 +52,7 @@ func (fs *FileSystem) GenerateThumbnail(ctx context.Context, file *model.File) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
defer source.Close()
|
||||
|
||||
image, err := thumb.NewThumbFromFile(source, file.Name)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user