mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_udp: when cleaning peer maps, run shrink_to_fit
This commit is contained in:
parent
ed5e6322ac
commit
5f10e5e7f4
1 changed files with 2 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ impl TorrentMaps {
|
||||||
keep
|
keep
|
||||||
});
|
});
|
||||||
|
|
||||||
|
torrent.peers.shrink_to_fit();
|
||||||
|
|
||||||
!torrent.peers.is_empty()
|
!torrent.peers.is_empty()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue