minor tweak to inactivity timer fix

This commit is contained in:
Arvid Norberg 2014-10-05 22:31:29 +00:00
parent 30d7b9e3c3
commit 8168c8520a
1 changed files with 5 additions and 1 deletions

View File

@ -9662,7 +9662,11 @@ namespace libtorrent
int delay = m_ses.settings().get_int(settings_pack::auto_manage_startup);
if (now - m_last_active_change < delay) return;
m_inactive = is_inactive_internal();
bool is_inactive = is_inactive_internal();
if (is_inactive == m_inactive) return;
m_inactive = is_inactive;
if (m_ses.settings().get_bool(settings_pack::dont_count_slow_torrents))
m_ses.trigger_auto_manage();
}