mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-17 21:01:48 +02:00
datagram fixes
This commit is contained in:
parent
c6556b8442
commit
7d37b02cff
2 changed files with 5 additions and 6 deletions
|
@ -547,8 +547,7 @@ namespace client
|
|||
auto datagram = dest->GetDatagramDestination ();
|
||||
if(datagram == nullptr) datagram = dest->CreateDatagramDestination();
|
||||
datagram->SetReceiver (std::bind (&AddressBook::HandleLookupResponse, this,
|
||||
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5),
|
||||
ADDRESS_RESPONSE_DATAGRAM_PORT);
|
||||
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -559,7 +558,7 @@ namespace client
|
|||
{
|
||||
auto datagram = dest->GetDatagramDestination ();
|
||||
if (datagram)
|
||||
datagram->ResetReceiver (ADDRESS_RESPONSE_DATAGRAM_PORT);
|
||||
datagram->ResetReceiver ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue