fixed bug in auto-manager where active_downloads and active_seeds would sometimes be used incorrectly

This commit is contained in:
Arvid Norberg 2009-11-29 03:28:11 +00:00
parent 0f351cfd62
commit 6070c59b46
2 changed files with 6 additions and 2 deletions

View File

@ -86,6 +86,8 @@ release 0.14.8
* ignore unkown metadata messages
* fixed typo that would sometimes prevent queued torrents to be checked
* fixed bug in auto-manager where active_downloads and active_seeds would
sometimes be used incorrectly
release 0.14.7

View File

@ -1813,8 +1813,10 @@ namespace aux {
// this is not an auto managed torrent,
// if it's running and active, decrease the
// counters.
--num_downloaders;
--num_seeds;
if (t->is_finished())
--num_seeds;
else
--num_downloaders;
}
}
}