lsd and dht announce timer fixes
This commit is contained in:
parent
5c02f3df59
commit
23881fb0ff
|
@ -2246,6 +2246,8 @@ namespace aux {
|
|||
m_dht_announce_timer.async_wait(
|
||||
bind(&session_impl::on_dht_announce, this, _1));
|
||||
|
||||
if (m_torrents.empty()) return;
|
||||
|
||||
if (m_next_dht_torrent == m_torrents.end())
|
||||
m_next_dht_torrent = m_torrents.begin();
|
||||
m_next_dht_torrent->second->dht_announce();
|
||||
|
@ -2270,6 +2272,8 @@ namespace aux {
|
|||
m_lsd_announce_timer.async_wait(
|
||||
bind(&session_impl::on_lsd_announce, this, _1));
|
||||
|
||||
if (m_torrents.empty()) return;
|
||||
|
||||
if (m_next_lsd_torrent == m_torrents.end())
|
||||
m_next_lsd_torrent = m_torrents.begin();
|
||||
m_next_lsd_torrent->second->lsd_announce();
|
||||
|
|
Loading…
Reference in New Issue