mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-15 01:23:14 -07:00
Fix for FileDB _networkChanged / _memberChanged problem.
This commit is contained in:
parent
2ee358dbfc
commit
57b96af2c4
4 changed files with 138 additions and 10 deletions
|
@ -138,10 +138,11 @@ RethinkDB::RethinkDB(EmbeddedNetworkController *const nc,const Identity &myId,co
|
|||
try {
|
||||
json &ov = tmp["old_val"];
|
||||
json &nv = tmp["new_val"];
|
||||
if (ov.is_object()||nv.is_object()) {
|
||||
//if (nv.is_object()) printf("NETWORK: %s" ZT_EOL_S,nv.dump().c_str());
|
||||
this->_networkChanged(ov,nv,(this->_ready <= 0));
|
||||
}
|
||||
json oldConfig,newConfig;
|
||||
if (ov.is_object()) oldConfig = ov["config"];
|
||||
if (nv.is_object()) newConfig = nv["config"];
|
||||
if (oldConfig.is_object()||newConfig.is_object())
|
||||
this->_networkChanged(oldConfig,newConfig,(this->_ready <= 0));
|
||||
} catch ( ... ) {} // ignore bad records
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue