Skip to content

Commit

Permalink
修复歌曲检查事件清理
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Nov 23, 2024
1 parent f9f8297 commit 41d6157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/core/useApp/usePlayer/usePreloadNextMusic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const checkMusicUrl = async(url: string) => {
audio.removeEventListener('canplay', handlePlay)
}
const handleErr = () => {
clear()
if (audio?.error?.code !== 1) {
resolve(false)
} else {
Expand Down

0 comments on commit 41d6157

Please sign in to comment.