From 12465f840a179532843514713180d51eb79a0277 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 15 Apr 2015 18:25:05 -0400 Subject: [PATCH] check outbound tunnles for readiness --- Destination.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Destination.h b/Destination.h index b5fcd520..29c3b230 100644 --- a/Destination.h +++ b/Destination.h @@ -64,7 +64,7 @@ namespace client bool IsRunning () const { return m_IsRunning; }; boost::asio::io_service& GetService () { return m_Service; }; std::shared_ptr GetTunnelPool () { return m_Pool; }; - bool IsReady () const { return m_LeaseSet && m_LeaseSet->HasNonExpiredLeases (); }; + bool IsReady () const { return m_LeaseSet && m_LeaseSet->HasNonExpiredLeases () && m_Pool->GetOutboundTunnels ().size () > 0; }; std::shared_ptr FindLeaseSet (const i2p::data::IdentHash& ident); bool RequestDestination (const i2p::data::IdentHash& dest, RequestComplete requestComplete = nullptr);