re-evaluate auto managed torrents soon after adding a new auto-managed torrent

This commit is contained in:
Arvid Norberg 2011-03-04 06:03:45 +00:00
parent 2bdfea4248
commit a0b6085530
1 changed files with 4 additions and 0 deletions

View File

@ -3967,6 +3967,10 @@ namespace aux {
if (m_alerts.should_post<torrent_added_alert>())
m_alerts.post_alert(torrent_added_alert(torrent_ptr->get_handle()));
// recalculate auto-managed torrents sooner
if (params.auto_managed && m_auto_manage_time_scaler > 1)
m_auto_manage_time_scaler = 1;
return torrent_handle(torrent_ptr);
}