delete invalid router after update

This commit is contained in:
orignal 2023-02-12 18:02:16 -05:00
parent 7bde4de1f5
commit d15581d95e
3 changed files with 25 additions and 10 deletions

View file

@ -253,7 +253,7 @@ namespace data
std::shared_ptr<RouterProfile> GetProfile () const;
void DropProfile () { m_Profile = nullptr; };
void Update (const uint8_t * buf, size_t len);
bool Update (const uint8_t * buf, size_t len);
void DeleteBuffer () { m_Buffer = nullptr; };
bool IsNewer (const uint8_t * buf, size_t len) const;