mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复定时退出可能导致崩溃的问题
This commit is contained in:
parent
5533ac6067
commit
0ef063e7b2
@ -17,6 +17,7 @@
|
||||
- 每次启动时过滤无效的歌曲
|
||||
- 修复换源失败时的处理问题
|
||||
- 修复非循环模式下播放结束后的状态显示问题及无法重新播放的问题(#104)
|
||||
- 修复定时退出可能导致崩溃的问题
|
||||
|
||||
### 变更
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { hideLyric } from './lyricDesktop'
|
||||
import { destroy as destroyPlayer } from '@/plugins/player/utils'
|
||||
import { destroy as destroyPlayer, pause } from '@/plugins/player/utils'
|
||||
import { exitApp as utilExitApp } from './utils'
|
||||
|
||||
let isDestroying = false
|
||||
@ -8,8 +8,8 @@ export const exitApp = () => {
|
||||
isDestroying = true
|
||||
Promise.all([
|
||||
hideLyric(),
|
||||
destroyPlayer(),
|
||||
]).finally(() => {
|
||||
pause(),
|
||||
]).finally(destroyPlayer).finally(() => {
|
||||
isDestroying = false
|
||||
utilExitApp()
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user