mirror of
https://github.com/eliasstepanik/filesystem-livesync.git
synced 2026-01-11 13:38:30 +00:00
Fixed:
- Fixed a problem with transferDoc returning incorrect results
This commit is contained in:
parent
6232c27cc3
commit
f56c95c082
@ -369,6 +369,7 @@ async function eachProc(syncKey: string, config: eachConf) {
|
|||||||
while (running[syncKey]) {
|
while (running[syncKey]) {
|
||||||
await delay(100);
|
await delay(100);
|
||||||
}
|
}
|
||||||
|
let result = true;
|
||||||
try {
|
try {
|
||||||
running[syncKey] = true;
|
running[syncKey] = true;
|
||||||
if (isKnownFile(syncKey, fromDoc._id, fromDoc._rev)) {
|
if (isKnownFile(syncKey, fromDoc._id, fromDoc._rev)) {
|
||||||
@ -395,11 +396,12 @@ async function eachProc(syncKey: string, config: eachConf) {
|
|||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
log("Exception on transfer doc");
|
log("Exception on transfer doc");
|
||||||
log(ex);
|
log(ex);
|
||||||
|
result = false;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
running[syncKey] = false;
|
running[syncKey] = false;
|
||||||
}
|
}
|
||||||
return false;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.sync_on_connect || config.server.initialScan) {
|
if (config.sync_on_connect || config.server.initialScan) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user