修复换源失败时的处理问题

This commit is contained in:
lyswhut 2022-04-05 22:15:00 +08:00
parent 448478b5b1
commit c9cab468e7
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- 修复wy源搜索某些歌曲时第一页之后的歌曲无法加载的问题
- 每次启动时过滤无效的歌曲
- 修复换源失败时的处理问题
### 变更

View File

@ -348,8 +348,9 @@ export const getOtherSource = ({ musicInfo, id }) => (dispatch, getState) => {
})
}
}
if (getOtherSourcePromises.has(key)) getOtherSourcePromises.delete(key)
return otherSource
}).finally(() => {
if (getOtherSourcePromises.has(key)) getOtherSourcePromises.delete(key)
})
getOtherSourcePromises.set(key, promise)
return promise