fix resume torrent issue

This commit is contained in:
Arvid Norberg 2013-01-22 02:12:18 +00:00
parent 29c17c123e
commit 13f2ae1154
1 changed files with 4 additions and 1 deletions

View File

@ -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