From 4c790043a1fe4dd7f7644ef400dc647673247f23 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 20 Nov 2015 01:38:21 -0500 Subject: [PATCH] fix invariant check failure in torrent::pause --- src/torrent.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 84622821b..b57eeb6d6 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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()