mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
don't wait for remote LeaseSet request complete
This commit is contained in:
parent
6125288e95
commit
3f4bd13091
@ -607,19 +607,10 @@ namespace stream
|
|||||||
{
|
{
|
||||||
LogPrint (eLogInfo, "All leases are expired. Trying to request");
|
LogPrint (eLogInfo, "All leases are expired. Trying to request");
|
||||||
m_RemoteLeaseSet = nullptr;
|
m_RemoteLeaseSet = nullptr;
|
||||||
m_LocalDestination.GetOwner ().RequestDestination (m_RemoteIdentity.GetIdentHash (),
|
m_LocalDestination.GetOwner ().RequestDestination (m_RemoteIdentity.GetIdentHash ());
|
||||||
std::bind (&Stream::HandleLeaseSetRequestComplete, shared_from_this (), std::placeholders::_1));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Stream::HandleLeaseSetRequestComplete (bool success)
|
|
||||||
{
|
|
||||||
if (success)
|
|
||||||
{
|
|
||||||
LogPrint (eLogInfo, "New LeaseSet found");
|
|
||||||
UpdateCurrentRemoteLease ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Stream::ScheduleResend ()
|
void Stream::ScheduleResend ()
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,6 @@ namespace stream
|
|||||||
|
|
||||||
template<typename Buffer, typename ReceiveHandler>
|
template<typename Buffer, typename ReceiveHandler>
|
||||||
void HandleReceiveTimer (const boost::system::error_code& ecode, const Buffer& buffer, ReceiveHandler handler);
|
void HandleReceiveTimer (const boost::system::error_code& ecode, const Buffer& buffer, ReceiveHandler handler);
|
||||||
void HandleLeaseSetRequestComplete (bool success);
|
|
||||||
|
|
||||||
void ScheduleResend ();
|
void ScheduleResend ();
|
||||||
void HandleResendTimer (const boost::system::error_code& ecode);
|
void HandleResendTimer (const boost::system::error_code& ecode);
|
||||||
|
Loading…
Reference in New Issue
Block a user