fixed race condition

This commit is contained in:
orignal 2014-10-15 17:45:30 -04:00
parent ecb1fd720d
commit 341e860caa

View File

@ -359,7 +359,7 @@ namespace stream
i2p::data::IdentHash ident;
if (name == "ME")
SendNamingLookupReply (nullptr);
else if (i2p::data::netdb.GetAddressBook ().GetIdentHash (name, ident))
else if (m_Session && i2p::data::netdb.GetAddressBook ().GetIdentHash (name, ident))
{
auto leaseSet = m_Session->localDestination->FindLeaseSet (ident);
if (leaseSet)