diff --git a/aquatic_udp/src/lib/common/mod.rs b/aquatic_udp/src/lib/common/mod.rs index fc96aed..d448f5a 100644 --- a/aquatic_udp/src/lib/common/mod.rs +++ b/aquatic_udp/src/lib/common/mod.rs @@ -155,6 +155,8 @@ impl TorrentMaps { keep }); + torrent.peers.shrink_to_fit(); + !torrent.peers.is_empty() } }