one more recalculate_auto_manage postponing fix

This commit is contained in:
Arvid Norberg
2011-12-23 20:02:59 +00:00
parent f60ea6a4a9
commit c2b8e869f1

View File

@@ -1842,8 +1842,7 @@ namespace aux {
// queued torrents sooner // queued torrents sooner
if ((m_settings.active_downloads != s.active_downloads if ((m_settings.active_downloads != s.active_downloads
|| m_settings.active_seeds != s.active_seeds || m_settings.active_seeds != s.active_seeds
|| m_settings.active_limit != s.active_limit) || m_settings.active_limit != s.active_limit))
&& m_auto_manage_time_scaler > 2)
m_auto_manage_time_scaler = 2; m_auto_manage_time_scaler = 2;
// if anonymous mode was enabled, clear out the peer ID // if anonymous mode was enabled, clear out the peer ID
@@ -2849,7 +2848,7 @@ namespace aux {
// auto managed torrent // auto managed torrent
// -------------------------------------------------------------- // --------------------------------------------------------------
m_auto_manage_time_scaler--; m_auto_manage_time_scaler--;
if (m_auto_manage_time_scaler <= 0) if (m_auto_manage_time_scaler < 0)
{ {
m_auto_manage_time_scaler = settings().auto_manage_interval; m_auto_manage_time_scaler = settings().auto_manage_interval;
recalculate_auto_managed_torrents(); recalculate_auto_managed_torrents();