revert mistake in queuing logic
This commit is contained in:
parent
0cb5db94b7
commit
5f98dec91b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue