Browse Source

update LeaseSet2 if store type changed

pull/1313/head
orignal 6 years ago
parent
commit
09b1b120d7
  1. 2
      libi2pd/NetDb.cpp

2
libi2pd/NetDb.cpp

@ -304,7 +304,7 @@ namespace data
if (leaseSet->IsValid ()) if (leaseSet->IsValid ())
{ {
auto it = m_LeaseSets.find(ident); auto it = m_LeaseSets.find(ident);
if (it == m_LeaseSets.end () || it->second->GetStoreType () == i2p::data::NETDB_STORE_TYPE_LEASESET || if (it == m_LeaseSets.end () || it->second->GetStoreType () != storeType ||
leaseSet->GetPublishedTimestamp () > it->second->GetPublishedTimestamp ()) leaseSet->GetPublishedTimestamp () > it->second->GetPublishedTimestamp ())
{ {
// TODO: implement actual update // TODO: implement actual update

Loading…
Cancel
Save