From 3185b627ef36c5c2a8aa25f2f829ef874b2b6587 Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 2 Apr 2020 17:40:08 +0200 Subject: [PATCH] torrent want-tick fixes --- src/torrent.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 3ed8ac9b5..563fda580 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1891,6 +1891,7 @@ bool is_downloading_state(int const st) m_have_all = true; update_gauge(); update_state_list(); + update_want_tick(); } else { @@ -2014,6 +2015,7 @@ bool is_downloading_state(int const st) #endif update_want_peers(); + update_want_tick(); // this will remove the piece picker, if we're done with it maybe_done_flushing(); @@ -4080,6 +4082,7 @@ bool is_downloading_state(int const st) m_picker->piece_passed(index); update_gauge(); we_have(index); + update_want_tick(); } #ifndef TORRENT_DISABLE_PREDICTIVE_PIECES @@ -6880,6 +6883,7 @@ bool is_downloading_state(int const st) } update_gauge(); + update_want_tick(); if (m_ses.alerts().should_post()) { @@ -8762,6 +8766,7 @@ bool is_downloading_state(int const st) if (it != m_web_seeds.end()) return &*it; m_web_seeds.push_back(ent); set_need_save_resume(); + update_want_tick(); return &m_web_seeds.back(); } @@ -10644,6 +10649,7 @@ bool is_downloading_state(int const st) update_gauge(); update_want_peers(); + update_want_tick(); update_state_list(); state_updated();