revert mistake in queuing logic

This commit is contained in:
Arvid Norberg 2014-05-22 22:07:01 +00:00
parent 0cb5db94b7
commit 5f98dec91b
1 changed files with 15 additions and 15 deletions

View File

@ -4194,15 +4194,6 @@ retry:
|| t->state() == torrent_status::queued_for_checking))
continue;
if (type_limit > 0 && hard_limit > 0)
{
--hard_limit;
--type_limit;
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING
t->log_to_all_peers("AUTO MANAGER STARTING TORRENT");
#endif
t->set_allow_peers(true);
--dht_limit;
--lsd_limit;
--tracker_limit;
@ -4217,6 +4208,15 @@ retry:
// download and seed limits don't.
continue;
}
if (type_limit > 0 && hard_limit > 0)
{
--hard_limit;
--type_limit;
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING
t->log_to_all_peers("AUTO MANAGER STARTING TORRENT");
#endif
t->set_allow_peers(true);
}
else
{