- Fixed a problem with transferDoc returning incorrect results
This commit is contained in:
turtton 2023-03-29 17:27:03 +09:00
parent 6232c27cc3
commit f56c95c082
No known key found for this signature in database
GPG Key ID: 8152FC5D0B5A76E1

View File

@ -369,6 +369,7 @@ async function eachProc(syncKey: string, config: eachConf) {
while (running[syncKey]) {
await delay(100);
}
let result = true;
try {
running[syncKey] = true;
if (isKnownFile(syncKey, fromDoc._id, fromDoc._rev)) {
@ -395,11 +396,12 @@ async function eachProc(syncKey: string, config: eachConf) {
} catch (ex) {
log("Exception on transfer doc");
log(ex);
result = false;
}
} finally {
running[syncKey] = false;
}
return false;
return result;
}
if (config.sync_on_connect || config.server.initialScan) {