aquatic_udp: when cleaning peer maps, run shrink_to_fit

This commit is contained in:
Joakim Frostegård 2021-11-02 23:59:50 +01:00
parent ed5e6322ac
commit 5f10e5e7f4

View file

@ -155,6 +155,8 @@ impl TorrentMaps {
keep
});
torrent.peers.shrink_to_fit();
!torrent.peers.is_empty()
}
}