From 3f4bd130916ddff1b96d0a18308ec5113f1ccfc1 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 23 Mar 2015 22:23:40 -0400 Subject: [PATCH] don't wait for remote LeaseSet request complete --- Streaming.cpp | 11 +---------- Streaming.h | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) 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);