dht_state() no longer asserts on the dht being active. It just returns an empty state if it isn't

This commit is contained in:
Arvid Norberg 2007-10-29 16:18:37 +00:00
parent 79d4191ef5
commit 70810cb7e9
1 changed files with 1 additions and 1 deletions

View File

@ -2122,8 +2122,8 @@ namespace detail
entry session_impl::dht_state() const
{
TORRENT_ASSERT(m_dht);
mutex_t::scoped_lock l(m_mutex);
if (!m_dht) return entry();
return m_dht->state();
}