mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-08 22:08:00 +00:00
fix work when dht is not loaded yet
This commit is contained in:
parent
ace69ca57e
commit
00ae4b712d
@ -5823,8 +5823,12 @@ retry:
|
||||
|
||||
entry session_impl::dht_getLocalData() const
|
||||
{
|
||||
entry state = m_dht->state();
|
||||
return state["storage_table"];
|
||||
if( m_dht ) {
|
||||
entry state = m_dht->state();
|
||||
return state["storage_table"];
|
||||
} else {
|
||||
return entry();
|
||||
}
|
||||
}
|
||||
|
||||
void session_impl::on_dht_router_name_lookup(error_code const& e
|
||||
|
Loading…
Reference in New Issue
Block a user