non-auto-managed torrents no longer count against the torrent limits

This commit is contained in:
Arvid Norberg 2014-01-08 03:51:55 +00:00
parent 89d5582560
commit 90ef2cb343
2 changed files with 1 additions and 11 deletions

View File

@ -1,3 +1,4 @@
* non-auto-managed torrents no longer count against the torrent limits
* handle DHT error responses correctly
* allow force_announce to only affect a single tracker
* add moving_storage field to torrent_status

View File

@ -4298,16 +4298,6 @@ retry:
{
TORRENT_ASSERT(t->m_resume_data_loaded || !t->valid_metadata());
--hard_limit;
if (is_active(t, settings()))
{
// this is not an auto managed torrent,
// if it's running and active, decrease the
// counters.
if (t->is_finished())
--num_seeds;
else
--num_downloaders;
}
}
}
@ -6186,7 +6176,6 @@ retry:
void session_impl::delete_port_mapping(int handle)
{
int ret = 0;
if (m_upnp) m_upnp->delete_mapping(handle);
if (m_natpmp) m_natpmp->delete_mapping(handle);
}