From 13f2ae1154048097df38f76f9de455b9f51a52bf Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 22 Jan 2013 02:12:18 +0000 Subject: [PATCH] fix resume torrent issue --- src/torrent.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 6b2ecfb7c..c344de641 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -7303,10 +7303,13 @@ namespace libtorrent && m_announce_to_dht && m_announce_to_trackers && m_announce_to_lsd) return; - set_allow_peers(true); m_announce_to_dht = true; m_announce_to_trackers = true; m_announce_to_lsd = true; + // this call will trigger a tracker announce, that's + // why it's important to set announce_to_trackers to + // true first + set_allow_peers(true); if (!m_ses.is_paused()) m_graceful_pause_mode = false; // we need to save this new state