forked from premiere/premiere-libtorrent
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:
parent
79d4191ef5
commit
70810cb7e9
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue