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