mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-08 22:57:52 +00:00
fixed race condition
This commit is contained in:
parent
ecb1fd720d
commit
341e860caa
2
SAM.cpp
2
SAM.cpp
@ -359,7 +359,7 @@ namespace stream
|
|||||||
i2p::data::IdentHash ident;
|
i2p::data::IdentHash ident;
|
||||||
if (name == "ME")
|
if (name == "ME")
|
||||||
SendNamingLookupReply (nullptr);
|
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);
|
auto leaseSet = m_Session->localDestination->FindLeaseSet (ident);
|
||||||
if (leaseSet)
|
if (leaseSet)
|
||||||
|
Loading…
Reference in New Issue
Block a user