lsd and dht announce timer fixes

This commit is contained in:
Arvid Norberg 2010-02-14 17:24:53 +00:00
parent 5c02f3df59
commit 23881fb0ff
1 changed files with 4 additions and 0 deletions

View File

@ -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();