From 9237174026c78edd4eaaf1d777d040379a08a5c6 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 2 Jan 2015 22:37:46 -0500 Subject: [PATCH] request failed in destination is not ready --- Destination.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Destination.cpp b/Destination.cpp index d670d915..566f4228 100644 --- a/Destination.cpp +++ b/Destination.cpp @@ -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; }