forked from premiere/premiere-libtorrent
fix resume torrent issue
This commit is contained in:
parent
29c17c123e
commit
13f2ae1154
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue