修复同步服务器启动失败时,关闭同步服务不会清空失败信息的问题
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user