Skip to content

Commit

Permalink
check outbound tunnles for readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 15, 2015
1 parent e8c9d2d commit 12465f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Destination.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace client
bool IsRunning () const { return m_IsRunning; };
boost::asio::io_service& GetService () { return m_Service; };
std::shared_ptr<i2p::tunnel::TunnelPool> 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<const i2p::data::LeaseSet> FindLeaseSet (const i2p::data::IdentHash& ident);
bool RequestDestination (const i2p::data::IdentHash& dest, RequestComplete requestComplete = nullptr);

Expand Down

0 comments on commit 12465f8

Please sign in to comment.