forked from premiere/premiere-libtorrent
torrent want-tick fixes
This commit is contained in:
parent
2d9513deb0
commit
3185b627ef
|
@ -1891,6 +1891,7 @@ bool is_downloading_state(int const st)
|
||||||
m_have_all = true;
|
m_have_all = true;
|
||||||
update_gauge();
|
update_gauge();
|
||||||
update_state_list();
|
update_state_list();
|
||||||
|
update_want_tick();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2014,6 +2015,7 @@ bool is_downloading_state(int const st)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
update_want_peers();
|
update_want_peers();
|
||||||
|
update_want_tick();
|
||||||
|
|
||||||
// this will remove the piece picker, if we're done with it
|
// this will remove the piece picker, if we're done with it
|
||||||
maybe_done_flushing();
|
maybe_done_flushing();
|
||||||
|
@ -4080,6 +4082,7 @@ bool is_downloading_state(int const st)
|
||||||
m_picker->piece_passed(index);
|
m_picker->piece_passed(index);
|
||||||
update_gauge();
|
update_gauge();
|
||||||
we_have(index);
|
we_have(index);
|
||||||
|
update_want_tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_PREDICTIVE_PIECES
|
#ifndef TORRENT_DISABLE_PREDICTIVE_PIECES
|
||||||
|
@ -6880,6 +6883,7 @@ bool is_downloading_state(int const st)
|
||||||
}
|
}
|
||||||
|
|
||||||
update_gauge();
|
update_gauge();
|
||||||
|
update_want_tick();
|
||||||
|
|
||||||
if (m_ses.alerts().should_post<metadata_received_alert>())
|
if (m_ses.alerts().should_post<metadata_received_alert>())
|
||||||
{
|
{
|
||||||
|
@ -8762,6 +8766,7 @@ bool is_downloading_state(int const st)
|
||||||
if (it != m_web_seeds.end()) return &*it;
|
if (it != m_web_seeds.end()) return &*it;
|
||||||
m_web_seeds.push_back(ent);
|
m_web_seeds.push_back(ent);
|
||||||
set_need_save_resume();
|
set_need_save_resume();
|
||||||
|
update_want_tick();
|
||||||
return &m_web_seeds.back();
|
return &m_web_seeds.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10644,6 +10649,7 @@ bool is_downloading_state(int const st)
|
||||||
|
|
||||||
update_gauge();
|
update_gauge();
|
||||||
update_want_peers();
|
update_want_peers();
|
||||||
|
update_want_tick();
|
||||||
update_state_list();
|
update_state_list();
|
||||||
|
|
||||||
state_updated();
|
state_updated();
|
||||||
|
|
Loading…
Reference in New Issue