修复同步服务器启动失败时,关闭同步服务不会清空失败信息的问题

pull/623/head
lyswhut 2021-08-11 16:39:33 +08:00
parent b0b0403d9a
commit ff53900ea3
2 changed files with 10 additions and 1 deletions

View File

@ -2,3 +2,5 @@
- 修复播放下载列表的歌曲时切歌的问题
- 修复播放下载列表的歌曲时歌词无法显示的问题
- 修复下载列表稍后播放功能无效的问题
- 修复同步服务器启动失败时,关闭同步服务不会清空失败信息的问题

View File

@ -120,7 +120,14 @@ const handleStopServer = async() => {
}
exports.stopServer = async() => {
if (!status.status) return
if (!status.status) {
status.status = false
status.message = ''
status.address = []
status.code = ''
global.lx_event.sync.status(status)
return
}
console.log('stoping sync server...')
return handleStopServer().then(() => {
console.log('sync server stoped')