forked from premiere/premiere-libtorrent
fix issue where want_tick could get out of sync with the lists the torrent belonged to
This commit is contained in:
parent
65d6e83b1a
commit
06ce1b4747
|
@ -9101,8 +9101,8 @@ bool is_downloading_state(int const st)
|
||||||
if (m_stat.low_pass_upload_rate() > 0 || m_stat.low_pass_download_rate() > 0)
|
if (m_stat.low_pass_upload_rate() > 0 || m_stat.low_pass_download_rate() > 0)
|
||||||
state_updated();
|
state_updated();
|
||||||
m_stat.second_tick(tick_interval_ms);
|
m_stat.second_tick(tick_interval_ms);
|
||||||
// if the rate is 0, there's no update because of network transfers
|
|
||||||
if (!(m_stat.low_pass_upload_rate() > 0 || m_stat.low_pass_download_rate() > 0))
|
// the low pass transfer rate may just have dropped to 0
|
||||||
update_want_tick();
|
update_want_tick();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -9214,6 +9214,8 @@ bool is_downloading_state(int const st)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// want_tick depends on whether the low pass transfer rates are non-zero
|
||||||
|
// or not. They may just have turned zero in this last tick.
|
||||||
update_want_tick();
|
update_want_tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue