1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

fix: always move duplicate peer_info to graveyard pool (#5941)

This commit is contained in:
Yat Ho 2023-09-11 10:12:11 +08:00 committed by GitHub
parent ebb1b775af
commit d566695b33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}