fix auto manage bug related to checking torrents

This commit is contained in:
Arvid Norberg 2008-06-18 13:02:03 +00:00
parent 9c94f54868
commit 7fe6c474ce
1 changed files with 8 additions and 6 deletions

View File

@ -1357,13 +1357,15 @@ namespace aux {
, end(downloaders.end()); i != end; ++i) , end(downloaders.end()); i != end; ++i)
{ {
torrent* t = *i; torrent* t = *i;
if (num_downloaders > 0 if (num_downloaders > 0)
&& t->state() != torrent_status::queued_for_checking
&& t->state() != torrent_status::checking_files)
{ {
--num_downloaders; if (t->state() != torrent_status::queued_for_checking
--num_seeds; && t->state() != torrent_status::checking_files)
if (t->is_paused()) t->resume(); {
--num_downloaders;
--num_seeds;
if (t->is_paused()) t->resume();
}
} }
else else
{ {