aquatic_ws: in remove_inactive_connections, run shrink_to_fit on map

This commit is contained in:
Joakim Frostegård 2020-05-12 15:24:57 +02:00
parent e4bdfd06fb
commit de06931242
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,6 @@
* network * network
* native_tls for wss support * native_tls for wss support
* handshake: deregister stream when applicable * handshake: deregister stream when applicable
* connection cleaning: shrink to fit
* test * test
* test full torrent transfer (offer-answer exchange) * test full torrent transfer (offer-answer exchange)
* torrent state cleaning * torrent state cleaning

View file

@ -98,6 +98,8 @@ pub fn remove_inactive_connections(
true true
} }
}); });
connections.shrink_to_fit();
} }