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:
@@ -2122,8 +2122,8 @@ namespace detail
|
|||||||
|
|
||||||
entry session_impl::dht_state() const
|
entry session_impl::dht_state() const
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(m_dht);
|
|
||||||
mutex_t::scoped_lock l(m_mutex);
|
mutex_t::scoped_lock l(m_mutex);
|
||||||
|
if (!m_dht) return entry();
|
||||||
return m_dht->state();
|
return m_dht->state();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user