mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-24 13:34:50 +00:00
session_impl fix
This commit is contained in:
parent
e1f963292a
commit
f6c15e09de
1 changed files with 2 additions and 1 deletions
|
@ -1238,7 +1238,8 @@ namespace detail
|
|||
if (num_connections() >= max_connections() && !m_torrents.empty())
|
||||
{
|
||||
torrent_map::iterator i = std::max_element(m_torrents.begin(), m_torrents.end()
|
||||
, bind(&torrent::num_peers, bind(&torrent_map::value_type::second, _1)));
|
||||
, bind(&torrent::num_peers, bind(&torrent_map::value_type::second, _1))
|
||||
< bind(&torrent::num_peers, bind(&torrent_map::value_type::second, _2)));
|
||||
|
||||
assert(i != m_torrents.end());
|
||||
i->second->get_policy().disconnect_one_peer();
|
||||
|
|
Loading…
Add table
Reference in a new issue