mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
fix: always move duplicate peer_info to graveyard pool (#5941)
This commit is contained in:
parent
ebb1b775af
commit
d566695b33
1 changed files with 2 additions and 5 deletions
|
@ -746,11 +746,8 @@ private:
|
||||||
TR_ASSERT(it != std::end(peers));
|
TR_ASSERT(it != std::end(peers));
|
||||||
(*it)->do_purge = true;
|
(*it)->do_purge = true;
|
||||||
|
|
||||||
if (was_connectable)
|
|
||||||
{
|
|
||||||
// Note that it_that is invalid after this point
|
// Note that it_that is invalid after this point
|
||||||
graveyard_pool.insert(connectable_pool.extract(it_that));
|
graveyard_pool.insert(connectable_pool.extract(it_that));
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue