fix auto manage bug related to checking torrents
This commit is contained in:
parent
9c94f54868
commit
7fe6c474ce
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue