fix invariant check failure in torrent::pause

This commit is contained in:
arvidn 2015-11-20 01:38:21 -05:00
parent f03cefceb6
commit 4c790043a1
1 changed files with 3 additions and 4 deletions

View File

@ -9583,10 +9583,6 @@ namespace libtorrent
m_announce_to_dht = false;
m_announce_to_trackers = false;
m_announce_to_lsd = false;
update_gauge();
update_want_peers();
update_want_scrape();
// we need to save this new state
m_need_save_resume_data = true;
@ -9594,6 +9590,9 @@ namespace libtorrent
m_graceful_pause_mode = graceful;
update_gauge();
update_want_peers();
update_want_scrape();
}
void torrent::do_pause()