fix to previous dht fix. removed some deprication warnings on msvc-8. various fixes

This commit is contained in:
Arvid Norberg
2007-03-02 01:16:59 +00:00
parent 8e844494a3
commit 83c2039ff7
6 changed files with 20 additions and 11 deletions

View File

@@ -1510,18 +1510,18 @@ namespace libtorrent { namespace detail
if (m_dht)
{
m_dht->stop();
m_dht.reset();
m_dht = 0;
}
m_dht.reset(new dht::dht_tracker(m_io_service
m_dht = new dht::dht_tracker(m_io_service
, m_dht_settings, m_listen_interface.address()
, startup_state));
, startup_state);
}
void session_impl::stop_dht()
{
mutex_t::scoped_lock l(m_mutex);
m_dht->stop();
m_dht.reset();
m_dht = 0;
}
void session_impl::set_dht_settings(dht_settings const& settings)