mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix thumbnails never returning
This commit is contained in:
parent
09430e56b8
commit
d1158cab05
@ -40,7 +40,10 @@ func ExtractThumbnail(path string, route string, sha *string) (string, error) {
|
||||
path: fmt.Sprintf("%s/%s", Settings.Metadata, sha),
|
||||
}
|
||||
ret.ready.Add(1)
|
||||
go extractThumbnail(path, ret.path, fmt.Sprintf("%s/thumbnails.png", route))
|
||||
go func() {
|
||||
extractThumbnail(path, ret.path, fmt.Sprintf("%s/thumbnails.png", route))
|
||||
ret.ready.Done()
|
||||
}()
|
||||
return ret
|
||||
})
|
||||
ret.ready.Wait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user