mirror of
https://github.com/eliasstepanik/filesystem-livesync.git
synced 2026-01-10 21:18:31 +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]) {
|
||||
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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user