diff --git a/Streaming.cpp b/Streaming.cpp index 9420bd4b..8b73e849 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -607,19 +607,10 @@ namespace stream { LogPrint (eLogInfo, "All leases are expired. Trying to request"); m_RemoteLeaseSet = nullptr; - m_LocalDestination.GetOwner ().RequestDestination (m_RemoteIdentity.GetIdentHash (), - std::bind (&Stream::HandleLeaseSetRequestComplete, shared_from_this (), std::placeholders::_1)); + m_LocalDestination.GetOwner ().RequestDestination (m_RemoteIdentity.GetIdentHash ()); } } - void Stream::HandleLeaseSetRequestComplete (bool success) - { - if (success) - { - LogPrint (eLogInfo, "New LeaseSet found"); - UpdateCurrentRemoteLease (); - } - } void Stream::ScheduleResend () { diff --git a/Streaming.h b/Streaming.h index cfb2ce90..d36da2aa 100644 --- a/Streaming.h +++ b/Streaming.h @@ -147,7 +147,6 @@ namespace stream template void HandleReceiveTimer (const boost::system::error_code& ecode, const Buffer& buffer, ReceiveHandler handler); - void HandleLeaseSetRequestComplete (bool success); void ScheduleResend (); void HandleResendTimer (const boost::system::error_code& ecode);