修复潜在同步问题

This commit is contained in:
lyswhut
2023-09-06 21:50:58 +08:00
parent fcffcb5b59
commit 3685cb8868
12 changed files with 51 additions and 32 deletions
+6 -6
View File
@@ -189,12 +189,12 @@ export const connect = (urlInfo: LX.Sync.Client.UrlInfo, keyInfo: LX.Sync.Client
onError(error, path, groupName) {
const name = groupName ?? ''
log.error(`sync call ${name} ${path.join('.')} error:`, error)
if (groupName == null) return
client?.close(SYNC_CLOSE_CODE.failed)
sendSyncStatus({
status: false,
message: error.message,
})
// if (groupName == null) return
// client?.close(SYNC_CLOSE_CODE.failed)
// sendSyncStatus({
// status: false,
// message: error.message,
// })
},
})