Browse Source

fixed race condition

pull/102/head
orignal 10 years ago
parent
commit
341e860caa
  1. 2
      SAM.cpp

2
SAM.cpp

@ -359,7 +359,7 @@ namespace stream @@ -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)

Loading…
Cancel
Save