1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00
This commit is contained in:
Jeff Becker 2016-08-21 22:34:48 -04:00
parent b977050caf
commit 6bb9de5a96
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -543,7 +543,9 @@ namespace client
auto dest = i2p::client::context.GetSharedLocalDestination (); auto dest = i2p::client::context.GetSharedLocalDestination ();
if (dest) if (dest)
{ {
auto datagram = dest->CreateDatagramDestination ();
auto datagram = dest->GetDatagramDestination ();
if(datagram == nullptr) datagram = dest->CreateDatagramDestination();
datagram->SetReceiver (std::bind (&AddressBook::HandleLookupResponse, this, datagram->SetReceiver (std::bind (&AddressBook::HandleLookupResponse, this,
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5), std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5),
ADDRESS_RESPONSE_DATAGRAM_PORT); ADDRESS_RESPONSE_DATAGRAM_PORT);