|
|
@ -596,15 +596,18 @@ 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 (), |
|
|
|
[packets, this](bool success) |
|
|
|
std::bind (&Stream::HandleLeaseSetRequestComplete, shared_from_this (), |
|
|
|
|
|
|
|
std::placeholders::_1, packets)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Stream::HandleLeaseSetRequestComplete (bool success, std::vector<Packet *> packets) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (success) |
|
|
|
if (success) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "New LeaseSet found. Sending packets"); |
|
|
|
LogPrint (eLogInfo, "New LeaseSet found. Sending packets"); |
|
|
|
SendPackets (packets); |
|
|
|
SendPackets (packets); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Stream::ScheduleResend () |
|
|
|
void Stream::ScheduleResend () |
|
|
|