Browse Source

request failed in destination is not ready

pull/131/head
orignal 10 years ago
parent
commit
9237174026
  1. 6
      Destination.cpp

6
Destination.cpp

@ -454,7 +454,11 @@ namespace client
bool ClientDestination::RequestDestination (const i2p::data::IdentHash& dest, RequestComplete requestComplete) bool ClientDestination::RequestDestination (const i2p::data::IdentHash& dest, RequestComplete requestComplete)
{ {
if (!m_Pool || !IsReady ()) return false; if (!m_Pool || !IsReady ())
{
if (requestComplete) requestComplete (false);
return false;
}
m_Service.post (std::bind (&ClientDestination::RequestLeaseSet, this, dest, requestComplete)); m_Service.post (std::bind (&ClientDestination::RequestLeaseSet, this, dest, requestComplete));
return true; return true;
} }

Loading…
Cancel
Save