mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-16 14:12:18 +02:00
fixed crash
This commit is contained in:
parent
57578a3aa3
commit
217ddfe98d
2 changed files with 13 additions and 9 deletions
|
@ -596,14 +596,17 @@ namespace stream
|
|||
LogPrint (eLogInfo, "All leases are expired. Trying to request");
|
||||
m_RemoteLeaseSet = nullptr;
|
||||
m_LocalDestination.GetOwner ().RequestDestination (m_RemoteIdentity.GetIdentHash (),
|
||||
[packets, this](bool success)
|
||||
{
|
||||
if (success)
|
||||
{
|
||||
LogPrint (eLogInfo, "New LeaseSet found. Sending packets");
|
||||
SendPackets (packets);
|
||||
}
|
||||
});
|
||||
std::bind (&Stream::HandleLeaseSetRequestComplete, shared_from_this (),
|
||||
std::placeholders::_1, packets));
|
||||
}
|
||||
}
|
||||
|
||||
void Stream::HandleLeaseSetRequestComplete (bool success, std::vector<Packet *> packets)
|
||||
{
|
||||
if (success)
|
||||
{
|
||||
LogPrint (eLogInfo, "New LeaseSet found. Sending packets");
|
||||
SendPackets (packets);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -147,6 +147,7 @@ namespace stream
|
|||
|
||||
template<typename Buffer, typename ReceiveHandler>
|
||||
void HandleReceiveTimer (const boost::system::error_code& ecode, const Buffer& buffer, ReceiveHandler handler);
|
||||
void HandleLeaseSetRequestComplete (bool success, std::vector<Packet *> packets);
|
||||
|
||||
void ScheduleResend ();
|
||||
void HandleResendTimer (const boost::system::error_code& ecode);
|
||||
|
|
Loading…
Add table
Reference in a new issue