Add periodic sync check when syncing LF<>another DB

This commit is contained in:
Adam Ierymenko 2019-08-08 17:20:50 -05:00
parent 760ae07d72
commit 55087521f6
No known key found for this signature in database
GPG key ID: 1657198823E52A61
4 changed files with 63 additions and 3 deletions

View file

@ -296,7 +296,7 @@ LFDB::LFDB(const Identity &myId,const char *path,const char *lfOwnerPrivate,cons
const uint64_t prevRevision = oldMember["revision"];
if (prevRevision < revision)
_memberChanged(oldMember,member,timeRangeStart > 0);
} else if (network.is_object()) {
} else if (hasNetwork(nwid)) {
nlohmann::json nullJson;
_memberChanged(nullJson,member,timeRangeStart > 0);
}