request failed in destination is not ready

This commit is contained in:
orignal 2015-01-02 22:37:46 -05:00
parent fd9a8fd2b1
commit 9237174026

View file

@ -454,7 +454,11 @@ namespace client
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));
return true;
}