fix occasional hang when loading artist pages
This commit is contained in:
@@ -622,7 +622,9 @@ func (a *ArtistPageHeader) UpdateInfo(info *mediaprovider.ArtistInfo) {
|
|||||||
|
|
||||||
if info.ImageURL != "" {
|
if info.ImageURL != "" {
|
||||||
if a.artistImage.HaveImage() {
|
if a.artistImage.HaveImage() {
|
||||||
_ = a.artistPage.im.RefreshCachedArtistImageIfExpired(a.artistID, info.ImageURL)
|
go func() {
|
||||||
|
_ = a.artistPage.im.RefreshCachedArtistImageIfExpired(a.artistID, info.ImageURL)
|
||||||
|
}()
|
||||||
} else {
|
} else {
|
||||||
go func() {
|
go func() {
|
||||||
im, err := a.artistPage.im.FetchAndCacheArtistImage(a.artistID, info.ImageURL)
|
im, err := a.artistPage.im.FetchAndCacheArtistImage(a.artistID, info.ImageURL)
|
||||||
|
|||||||
Reference in New Issue
Block a user