fix: always move duplicate peer_info to graveyard pool (#5941)
This commit is contained in:
parent
ebb1b775af
commit
d566695b33
|
@ -746,11 +746,8 @@ private:
|
|||
TR_ASSERT(it != std::end(peers));
|
||||
(*it)->do_purge = true;
|
||||
|
||||
if (was_connectable)
|
||||
{
|
||||
// Note that it_that is invalid after this point
|
||||
graveyard_pool.insert(connectable_pool.extract(it_that));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue