Browse Source

fix work when dht is not loaded yet

miguelfreitas
Denis Ryabov 10 years ago
parent
commit
00ae4b712d
  1. 4
      libtorrent/src/session_impl.cpp

4
libtorrent/src/session_impl.cpp

@ -5823,8 +5823,12 @@ retry:
entry session_impl::dht_getLocalData() const entry session_impl::dht_getLocalData() const
{ {
if( m_dht ) {
entry state = m_dht->state(); entry state = m_dht->state();
return state["storage_table"]; return state["storage_table"];
} else {
return entry();
}
} }
void session_impl::on_dht_router_name_lookup(error_code const& e void session_impl::on_dht_router_name_lookup(error_code const& e

Loading…
Cancel
Save